Generate an error message if starting a transfer fails.

This commit is contained in:
augustss 2000-04-02 21:25:41 +00:00
parent 2bc5adb20e
commit 0a425e1f3d
3 changed files with 9 additions and 5 deletions

View File

@ -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 <wpaul@ee.columbia.edu>. 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);
}

View File

@ -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 <wpaul@ee.columbia.edu>. 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);
}

View File

@ -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 <wpaul@ee.columbia.edu>. 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);
}