Browse Source

Bugfix: avalon: Strict formatting

Luke Dashjr 12 years ago
parent
commit
0b8839b581
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-avalon.c

+ 1 - 1
driver-avalon.c

@@ -191,7 +191,7 @@ static int avalon_send_task(int fd, const struct avalon_task *at,
 	if (at->reset)
 	if (at->reset)
 		nr_len = 1;
 		nr_len = 1;
 	if (opt_debug) {
 	if (opt_debug) {
-		applog(LOG_DEBUG, "Avalon: Sent(%d):", nr_len);
+		applog(LOG_DEBUG, "Avalon: Sent(%lu):", (unsigned long)nr_len);
 		hexdump((uint8_t *)buf, nr_len);
 		hexdump((uint8_t *)buf, nr_len);
 	}
 	}
 	ret = write(fd, buf, nr_len);
 	ret = write(fd, buf, nr_len);