diff options
author | joe <joe@FreeBSD.org> | 2002-04-07 14:49:14 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-04-07 14:49:14 +0000 |
commit | 6ef5bd233e76d65cbc324a90369f9e49e6641735 (patch) | |
tree | 3378f7ce009f077964891ec739bf130198195119 | |
parent | 2b474c9f53bd5172a8a066c69e315a4f963db54d (diff) | |
download | FreeBSD-src-6ef5bd233e76d65cbc324a90369f9e49e6641735.zip FreeBSD-src-6ef5bd233e76d65cbc324a90369f9e49e6641735.tar.gz |
MFNetBSD: ohci.c (1.112), uhci.c (1.147)
date: 2001/11/21 02:38:35; author: augustss;
Cast some args to bitmask_snprintf().
-rw-r--r-- | sys/dev/usb/ohci.c | 8 | ||||
-rw-r--r-- | sys/dev/usb/uhci.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 58986fa..dd60e56 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -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$ */ /* @@ -1879,7 +1879,7 @@ ohci_dump_td(ohci_soft_td_t *std) { 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)); @@ -1927,10 +1927,10 @@ ohci_dump_ed(ohci_soft_ed_t *sed) { 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((int)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 --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 78b3bad..1fa9cf1 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -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$ */ /* @@ -774,9 +774,9 @@ uhci_dump_td(uhci_soft_td_t *p) (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)); |