summaryrefslogtreecommitdiffstats
path: root/sys/dev/musycc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-15 00:19:43 +0000
committerpeter <peter@FreeBSD.org>2001-06-15 00:19:43 +0000
commit9d6d9b8c205e98be206fecfa682b45a490ae2718 (patch)
treeba5c3c2db2f5481ff0e1399f50bcf0a10d238d2e /sys/dev/musycc
parentea133b36699f2c95944ea2f57dbcb1b8007fcd24 (diff)
downloadFreeBSD-src-9d6d9b8c205e98be206fecfa682b45a490ae2718.zip
FreeBSD-src-9d6d9b8c205e98be206fecfa682b45a490ae2718.tar.gz
Fix warnings:
musycc.c:449: warning: long unsigned int format, unsigned int arg (arg 3) musycc.c:449: warning: long unsigned int format, unsigned int arg (arg 4) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 3) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 4) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 5) These warnings used to be confined to the alpha but are on all now.
Diffstat (limited to 'sys/dev/musycc')
-rw-r--r--sys/dev/musycc/musycc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/musycc/musycc.c b/sys/dev/musycc/musycc.c
index 87763d69..7cf7715 100644
--- a/sys/dev/musycc/musycc.c
+++ b/sys/dev/musycc/musycc.c
@@ -446,11 +446,12 @@ status_chans(struct softc *sc, char *s)
sprintf(s + strlen(s), "c%2d:", i);
sprintf(s + strlen(s), " ts %08x", scp->ts);
sprintf(s + strlen(s), " RX %lus/%lus",
- time_second - scp->last_recv, time_second - scp->last_rxerr);
+ (long)(time_second - scp->last_recv),
+ (long)(time_second - scp->last_rxerr));
sprintf(s + strlen(s), " TX %lus/%lus/%lus",
- time_second - scp->last_xmit,
- time_second - scp->last_txerr,
- time_second - scp->last_txdrop);
+ (long)(time_second - scp->last_xmit),
+ (long)(time_second - scp->last_txerr),
+ (long)(time_second - scp->last_txdrop));
sprintf(s + strlen(s), " TXdrop %lu Pend %lu",
scp->tx_drop,
scp->tx_pending);
OpenPOWER on IntegriCloud