From 9d6d9b8c205e98be206fecfa682b45a490ae2718 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 15 Jun 2001 00:19:43 +0000 Subject: 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 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); -- cgit v1.1