Commit 2b1685c0767721a45322e6827e9efd83bae8935e

Con Kolivas 2014-02-07T01:08:39

Show serial number as a hex value in hfa verbose startup.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index b30e1b1..8d2e20c 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -413,7 +413,7 @@ tryagain:
 	       (db->firmware_rev >> 8) & 0xff, db->firmware_rev & 0xff);
 	applog(LOG_INFO, "%s %d:      hardware_rev:    %d.%d", hashfast->drv->name, hashfast->device_id,
 	       (db->hardware_rev >> 8) & 0xff, db->hardware_rev & 0xff);
-	applog(LOG_INFO, "%s %d:      serial number:   %d", hashfast->drv->name, hashfast->device_id,
+	applog(LOG_INFO, "%s %d:      serial number:   0x%08x", hashfast->drv->name, hashfast->device_id,
 	       db->serial_number);
 	applog(LOG_INFO, "%s %d:      hash clockrate:  %d Mhz", hashfast->drv->name, hashfast->device_id,
 	       db->hash_clockrate);