From 56a45778f87bb5164896c6feba79cd1d2c1b7790 Mon Sep 17 00:00:00 2001 From: Kano Date: Thu, 2 May 2013 23:02:35 +1000 Subject: [PATCH] usbutils correct applog typing --- usbutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbutils.c b/usbutils.c index 102f4058..ac98ec69 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; }