Commit ade4b0a6168efa316718d8b82f2b5f128ee5c3ca

Con Kolivas 2014-02-24T10:36:44

Set opname on hfa devices without a serial number to a hex value based on time to not overflow the field.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index c827715..363c769 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -333,7 +333,7 @@ static void hfa_choose_opname(struct cgpu_info *hashfast, struct hashfast_info *
 
 		cgtime(&tv_now);
 		usecs = (uint64_t)(tv_now.tv_sec) * (uint64_t)1000000 + (uint64_t)tv_now.tv_usec;
-		sprintf(info->op_name, "%"PRIu64, usecs);
+		sprintf(info->op_name, "%lx", usecs);
 	}
 	memset(&nameframe, 0, sizeof(nameframe));
 	strncpy(nameframe.name, info->op_name, 32);