Commit 3bb5b054beaaa7bdd27107c3fe1c95f27140d1bf

Con Kolivas 2014-02-15T16:56:08

Use the simplelog function from usb_list()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/usbutils.c b/usbutils.c
index c7b378d..0a5e088 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1340,12 +1340,12 @@ void usb_list(void)
 		libusb_get_string_descriptor_ascii(handle, desc.iProduct, prod, 255);
 		total++;
 		active = how_in_use(bus_number, device_address, &blacklisted);
-		applog(LOG_WARNING, "Bus %u Device %u ID: %04x:%04x %s %s %sactive %s",
+		simplelog(LOG_WARNING, "Bus %u Device %u ID: %04x:%04x %s %s %sactive %s",
 		       bus_number, device_address, desc.idVendor, desc.idProduct,
 		       manuf, prod, active ? "" : "in", blacklisted ? "blacklisted" : "");
 	}
 	libusb_free_device_list(list, 1);
-	applog(LOG_WARNING, "%d total known USB device%s", total, total > 1 ? "s": "");
+	simplelog(LOG_WARNING, "%d total known USB device%s", total, total > 1 ? "s": "");
 }
 
 static void add_in_use(uint8_t bus_number, uint8_t device_address, bool blacklist)