From 70907c3fc4b344d00ce900e6a536e9cc16a35216 Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Fri, 21 Aug 2015 15:18:48 +1000 Subject: Recognise storage devices on USB bus Users may want to prioritise USB-attached storage devices differently to other devices. Detect if a device is USB-attached and add a new device type to identify it. Signed-off-by: Samuel Mendoza-Jonas --- ui/test/discover-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/test') diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c index 363a289..b099b59 100644 --- a/ui/test/discover-test.c +++ b/ui/test/discover-test.c @@ -8,6 +8,8 @@ static const char *device_type_string(enum device_type type) switch (type) { case DEVICE_TYPE_DISK: return "disk"; + case DEVICE_TYPE_USB: + return "usb"; case DEVICE_TYPE_NETWORK: return "network"; case DEVICE_TYPE_OPTICAL: -- cgit v1.2.1