From c5d8f2e6b1ee49ee85cd55a2b4320e73480cb33b Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 15 Jun 2001 00:19:43 +0000 Subject: [PATCH] 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. --- sys/dev/musycc/musycc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/musycc/musycc.c b/sys/dev/musycc/musycc.c index 87763d692049..7cf7715e3411 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);