Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Cast some args to bitmask_snprintf().
details: https://anonhg.NetBSD.org/src/rev/45d629caa5f3
branches: trunk
changeset: 517890:45d629caa5f3
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Nov 21 02:38:35 2001 +0000
description:
Cast some args to bitmask_snprintf().
diffstat:
sys/dev/usb/ohci.c | 10 +++++-----
sys/dev/usb/uhci.c | 11 ++++++-----
2 files changed, 11 insertions(+), 10 deletions(-)
diffs (80 lines):
diff -r 3eeeafe38829 -r 45d629caa5f3 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Wed Nov 21 01:45:21 2001 +0000
+++ b/sys/dev/usb/ohci.c Wed Nov 21 02:38:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.111 2001/11/20 21:12:46 augustss Exp $ */
+/* $NetBSD: ohci.c,v 1.112 2001/11/21 02:38:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.111 2001/11/20 21:12:46 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.112 2001/11/21 02:38:35 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1825,7 +1825,7 @@
{
char sbuf[128];
- bitmask_snprintf((int)le32toh(std->td.td_flags),
+ bitmask_snprintf((u_int32_t)le32toh(std->td.td_flags),
"\20\23R\24OUT\25IN\31TOG1\32SETTOGGLE",
sbuf, sizeof(sbuf));
@@ -1873,10 +1873,10 @@
{
char sbuf[128], sbuf2[128];
- bitmask_snprintf((int)le32toh(sed->ed.ed_flags),
+ bitmask_snprintf((u_int32_t)le32toh(sed->ed.ed_flags),
"\20\14OUT\15IN\16LOWSPEED\17SKIP\20ISO",
sbuf, sizeof(sbuf));
- bitmask_snprintf((u_long)le32toh(sed->ed.ed_headp),
+ bitmask_snprintf((u_int32_t)le32toh(sed->ed.ed_headp),
"\20\1HALT\2CARRY", sbuf2, sizeof(sbuf2));
printf("ED(%p) at 0x%08lx: addr=%d endpt=%d maxp=%d flags=%s\ntailp=0x%08lx "
diff -r 3eeeafe38829 -r 45d629caa5f3 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c Wed Nov 21 01:45:21 2001 +0000
+++ b/sys/dev/usb/uhci.c Wed Nov 21 02:38:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci.c,v 1.146 2001/11/20 21:12:46 augustss Exp $ */
+/* $NetBSD: uhci.c,v 1.147 2001/11/21 02:38:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.146 2001/11/20 21:12:46 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.147 2001/11/21 02:38:36 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -789,9 +789,9 @@
(long)le32toh(p->td.td_token),
(long)le32toh(p->td.td_buffer)));
- bitmask_snprintf((int)le32toh(p->td.td_link), "\20\1T\2Q\3VF",
+ bitmask_snprintf((u_int32_t)le32toh(p->td.td_link), "\20\1T\2Q\3VF",
sbuf, sizeof(sbuf));
- bitmask_snprintf((int)le32toh(p->td.td_status),
+ bitmask_snprintf((u_int32_t)le32toh(p->td.td_status),
"\20\22BITSTUFF\23CRCTO\24NAK\25BABBLE\26DBUFFER\27"
"STALLED\30ACTIVE\31IOC\32ISO\33LS\36SPD",
sbuf2, sizeof(sbuf2));
@@ -1431,7 +1431,8 @@
#ifdef UHCI_DEBUG
char sbuf[128];
- bitmask_snprintf((int)status, "\20\22BITSTUFF\23CRCTO\24NAK\25"
+ bitmask_snprintf((u_int32_t)status,
+ "\20\22BITSTUFF\23CRCTO\24NAK\25"
"BABBLE\26DBUFFER\27STALLED\30ACTIVE",
sbuf, sizeof(sbuf));
Home |
Main Index |
Thread Index |
Old Index