Commit 56a45778f87bb5164896c6feba79cd1d2c1b7790

Kano 2013-05-02T23:02:35

usbutils correct applog typing

diff --git a/usbutils.c b/usbutils.c
index 102f405..ac98ec6 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1138,7 +1138,7 @@ static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, ui
 	// Wait forever since we shoud be the one who has it
 	if (semtimedop(sem, sops, 1, &timeout)) {
 		applog(LOG_ERR,
-			"SEM: %d USB failed to release '%s' err (%d) %s",
+			"SEM: %s USB failed to release '%s' err (%d) %s",
 			drv->dname, name, errno, strerror(errno));
 	}
 
@@ -1602,7 +1602,7 @@ void usb_detect(struct device_drv *drv, bool (*device_detect)(struct libusb_devi
 
 	count = libusb_get_device_list(NULL, &list);
 	if (count < 0) {
-		applog(LOG_DEBUG, "USB scan devices: failed, err %d", count);
+		applog(LOG_DEBUG, "USB scan devices: failed, err %zd", count);
 		return;
 	}