Commit 148e3d64bcc4d49abfcdd7a9e6fbf51ffb8b69fc

Kano 2013-06-15T23:38:49

applog usb device list can be > LOGBUFSIZ

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index d2d4d9f..6710d48 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -924,7 +924,7 @@ void usb_all(int level)
 		for (i = 0; i < count; i++)
 			usb_full(&j, list[i], &buf, &off, &len, level);
 
-		applog(LOG_WARNING, "%s", buf);
+		_applog(LOG_WARNING, buf);
 
 		free(buf);