aboutsummaryrefslogtreecommitdiff
path: root/usb-linux.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-21 19:32:29 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-21 19:32:29 +0000
commit0d380648582e081ffb873b29717cf6611a517daf (patch)
tree81d0fa5048eb7fc204ef1209794485a47e1f9290 /usb-linux.c
parent24772c1edabb8bef3e74cd12da5c28c273d51153 (diff)
husb: Fixup printfs and stuff based on the review comments (Max Krasnyansky)
Addressing Anthony's comments regarding printf and stuff. Anthony, if you you want I can fold this commit and resend the original patch. Signed-off-by: Max Krasnyansky <maxk@kernel.org> Signed-off-by: AnthonY Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5053 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'usb-linux.c')
-rw-r--r--usb-linux.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usb-linux.c b/usb-linux.c
index dd78bb6db7..c31d56a0c1 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -272,7 +272,7 @@ static int usb_host_update_interfaces(USBHostDevice *dev, int configuration)
}
if (i >= dev->descr_len) {
- printf("husb: update iface failed. no matching configuration\n");
+ fprintf(stderr, "husb: update iface failed. no matching configuration\n");
goto fail;
}
nb_interfaces = dev->descr[i + 4];
@@ -815,9 +815,6 @@ static int usb_host_auto_scan(void *opaque, int bus_num, int addr,
return 0;
for (f = usb_auto_filter; f; f = f->next) {
- // printf("Auto match: bus_num %d addr %d vid %d pid %d\n",
- // bus_num, addr, vendor_id, product_id);
-
if (f->bus_num >= 0 && f->bus_num != bus_num)
continue;
@@ -860,8 +857,8 @@ static void usb_host_auto_add(int bus_num, int addr, int vendor_id, int product_
{
struct USBAutoFilter *f = qemu_mallocz(sizeof(*f));
if (!f) {
- printf("husb: failed to allocate auto filter\n");
- return;
+ fprintf(stderr, "husb: failed to allocate auto filter\n");
+ return;
}
f->bus_num = bus_num;
@@ -878,7 +875,7 @@ static void usb_host_auto_add(int bus_num, int addr, int vendor_id, int product_
*/
usb_auto_timer = qemu_new_timer(rt_clock, usb_host_auto_timer, NULL);
if (!usb_auto_timer) {
- printf("husb: failed to allocate timer\n");
+ fprintf(stderr, "husb: failed to allocate auto scan timer\n");
qemu_free(f);
return;
}