mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Add a power exceeded debug message.
Update the $NetBSD$ ident to match reality.
This commit is contained in:
parent
8e0c4b3892
commit
c628479a57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95445
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usb_subr.c,v 1.96 2001/11/22 21:59:33 augustss Exp $ */
|
||||
/* $NetBSD: usb_subr.c,v 1.98 2002/02/20 20:30:13 christos Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
@ -672,6 +672,7 @@ usbd_set_config_index(usbd_device_handle dev, int index, int msg)
|
||||
#endif
|
||||
power = cdp->bMaxPower * 2;
|
||||
if (power > dev->powersrc->power) {
|
||||
DPRINTF(("power exceeded %d %d\n", power,dev->powersrc->power));
|
||||
/* XXX print nicer message. */
|
||||
if (msg)
|
||||
printf("%s: device addr %d (config %d) exceeds power "
|
||||
|
Loading…
Reference in New Issue
Block a user