Commit 26341bbf755bb20befc39173669754bad1a2c6a9

Kano 2013-03-15T00:30:48

USB -n 'known' text only without ---usb-list-all

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/usbutils.c b/usbutils.c
index 4d14159..151d3cd 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -609,7 +609,8 @@ void usb_all(int level)
 		if (j == -1)
 			applog(LOG_WARNING, "No known USB devices");
 		else
-			applog(LOG_WARNING, "%d known USB devices", (int)(++j));
+			applog(LOG_WARNING, "%d %sUSB devices",
+				(int)(++j), opt_usb_list_all ? BLANK : "known ");
 
 	}