Commit 55533de6466dff3c320515e71355eeda217ad6f3

Angus Gratton 2013-12-14T14:00:03

Tag log lines from brand new devices as DRB-1 until they are initialised

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-drillbit.c b/driver-drillbit.c
index 7827d26..39625c2 100644
--- a/driver-drillbit.c
+++ b/driver-drillbit.c
@@ -549,10 +549,11 @@ static struct cgpu_info *drillbit_detect_one(struct libusb_device *dev, struct u
                 return false; // Bit of a hack doing this here, should do it somewhere else
 
         drillbit = usb_alloc_cgpu(&drillbit_drv, 1);
+        drillbit->device_id = -1; // temporary so drvlog() prints a non-valid device_id
 
         if (!usb_init(drillbit, dev, found))
 		goto out;
-	drvlog(LOG_INFO, "Found at %s", drillbit->device_path);
+	applog(LOG_INFO, "DRB: Device found at %s", drillbit->device_path);
 
 	info = calloc(sizeof(struct drillbit_info), 1);
 	if (!info)