Module Name: src
Committed By: skrll
Date: Fri Jan 11 06:22:23 UTC 2013
Modified Files:
src/sys/dev/usb: umass.c
Log Message:
Improve a panic message slightly
To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/usb/umass.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/umass.c
diff -u src/sys/dev/usb/umass.c:1.146 src/sys/dev/usb/umass.c:1.147
--- src/sys/dev/usb/umass.c:1.146 Fri Aug 24 12:20:02 2012
+++ src/sys/dev/usb/umass.c Fri Jan 11 06:22:23 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: umass.c,v 1.146 2012/08/24 12:20:02 drochner Exp $ */
+/* $NetBSD: umass.c,v 1.147 2013/01/11 06:22:23 skrll Exp $ */
/*
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.146 2012/08/24 12:20:02 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.147 2013/01/11 06:22:23 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_umass.h"
@@ -1241,9 +1241,10 @@ umass_bbb_state(usbd_xfer_handle xfer, u
} else if (sc->transfer_actlen > sc->transfer_datalen) {
/* Buffer overrun! Don't let this go by unnoticed */
- panic("%s: transferred %d bytes instead of %d bytes",
- device_xname(sc->sc_dev),
- sc->transfer_actlen, sc->transfer_datalen);
+ panic("%s: transferred %s %d bytes instead of %d bytes",
+ device_xname(sc->sc_dev),
+ sc->transfer_dir == DIR_IN ? "IN" : "OUT",
+ sc->transfer_actlen, sc->transfer_datalen);
#if 0
} else if (sc->transfer_datalen - sc->transfer_actlen
!= residue) {