From 0a425e1f3d77fe3d6c6a8d946331fad400a5c38a Mon Sep 17 00:00:00 2001 From: augustss Date: Sun, 2 Apr 2000 21:25:41 +0000 Subject: [PATCH] Generate an error message if starting a transfer fails. --- sys/dev/usb/if_aue.c | 4 +++- sys/dev/usb/if_cue.c | 4 +++- sys/dev/usb/if_kue.c | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 34a67ef97bbe..2b7edc090202 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_aue.c,v 1.36 2000/03/30 00:18:17 augustss Exp $ */ +/* $NetBSD: if_aue.c,v 1.37 2000/04/02 21:25:41 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -1447,6 +1447,8 @@ aue_send(sc, m, idx) /* Transmit */ err = usbd_transfer(c->aue_xfer); if (err != USBD_IN_PROGRESS) { + printf("%s: aue_send error=%s\n", USBDEVNAME(sc->aue_dev), + usbd_errstr(err)); aue_stop(sc); return (EIO); } diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 508ca01f4ecb..c61974bef023 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cue.c,v 1.20 2000/03/30 08:53:30 augustss Exp $ */ +/* $NetBSD: if_cue.c,v 1.21 2000/04/02 21:25:41 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -1191,6 +1191,8 @@ cue_send(sc, m, idx) /* Transmit */ err = usbd_transfer(c->cue_xfer); if (err != USBD_IN_PROGRESS) { + printf("%s: cue_send error=%s\n", USBDEVNAME(sc->cue_dev), + usbd_errstr(err)); cue_stop(sc); return (EIO); } diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index 45bc3d4d52ec..cd528fbc6db6 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_kue.c,v 1.27 2000/03/30 00:18:17 augustss Exp $ */ +/* $NetBSD: if_kue.c,v 1.28 2000/04/02 21:25:41 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 * Bill Paul . All rights reserved. @@ -1121,8 +1121,8 @@ kue_send(sc, m, idx) /* Transmit */ err = usbd_transfer(c->kue_xfer); if (err != USBD_IN_PROGRESS) { - DPRINTF(("%s: kue_send err=%s\n", USBDEVNAME(sc->kue_dev), - usbd_errstr(err))); + printf("%s: kue_send error=%s\n", USBDEVNAME(sc->kue_dev), + usbd_errstr(err)); kue_stop(sc); return (EIO); }