From: aliguori Date: Tue, 21 Oct 2008 16:27:28 +0000 (+0000) Subject: Fix broken USB support for Linux host (Bjorn Danielsson) X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~13779 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22babebbaa17c0c0c134ea4f5eaf5cbbd68472ab;p=sdk%2Femulator%2Fqemu.git Fix broken USB support for Linux host (Bjorn Danielsson) Make "host:" usb devices work again on systems that have the file /proc/bus/usb/devices. This was broken in r5441 due to incorrect logic for the USB_FS_SYS case in usb_host_scan(). Signed-off-by: Bjorn Danielsson Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5507 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/usb-linux.c b/usb-linux.c index 6113a0c..7e94c6a 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1293,7 +1293,8 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) usb_fs_type = USB_FS_SYS; closedir(dir); dprintf(opened, USBSYSBUS_PATH, devices); - } else { + } + if (!usb_fs_type) { term_printf("husb: unable to access USB devices\n"); goto the_end; }