Commit 67e35260652823b9933c8b70e9e50d1b9c136857

Con Kolivas 2013-11-30T17:03:22

Add debug output saying what frame command is being sent in hfa driver.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-hashfast.c b/driver-hashfast.c
index dd2c219..5a0341c 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -119,6 +119,7 @@ static bool hfa_send_frame(struct cgpu_info *hashfast, uint8_t opcode, uint16_t 
 		memcpy(&packet[sizeof(struct hf_header)], data, len);
 	tx_length = sizeof(struct hf_header) + len;
 
+	applog(LOG_DEBUG, "HFA %d: Sending %s frame", hashfast->device_id, hfa_cmds[opcode].cmd_name);
 	ret = usb_write(hashfast, (char *)packet, tx_length, &amount,
 			hfa_cmds[opcode].usb_cmd);
 	if (unlikely(ret < 0 || amount != tx_length)) {