diff options
author | peter <peter@FreeBSD.org> | 2001-06-15 07:39:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-06-15 07:39:12 +0000 |
commit | 0815b94904f61bba6bbdc604de6a880228045b80 (patch) | |
tree | 8478b4765175e66007d538f1626bd97e5cda8da1 /sys/pci/if_mn.c | |
parent | 0a09e30aa91eb4fbed4465a1b822059100183a24 (diff) | |
download | FreeBSD-src-0815b94904f61bba6bbdc604de6a880228045b80.zip FreeBSD-src-0815b94904f61bba6bbdc604de6a880228045b80.tar.gz |
Fix warnings:
412: warning: long unsigned int format, unsigned int arg (arg 3)
418: warning: long unsigned int format, unsigned int arg (arg 3)
424: warning: long unsigned int format, unsigned int arg (arg 3)
Diffstat (limited to 'sys/pci/if_mn.c')
-rw-r--r-- | sys/pci/if_mn.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/pci/if_mn.c b/sys/pci/if_mn.c index bfd3165..8d19e22 100644 --- a/sys/pci/if_mn.c +++ b/sys/pci/if_mn.c @@ -409,19 +409,22 @@ ngmn_rcvmsg(node_p node, item_p item, hook_p lasthook) pos += sprintf(r + pos, " Last Rx: "); if (sch->last_recv) - pos += sprintf(r + pos, "%lu s", time_second - sch->last_recv); + pos += sprintf(r + pos, "%lu s", + (unsigned long)(time_second - sch->last_recv)); else pos += sprintf(r + pos, "never"); pos += sprintf(r + pos, ", last RxErr: "); if (sch->last_rxerr) - pos += sprintf(r + pos, "%lu s", time_second - sch->last_rxerr); + pos += sprintf(r + pos, "%lu s", + (unsigned long)(time_second - sch->last_rxerr)); else pos += sprintf(r + pos, "never"); pos += sprintf(r + pos, ", last Tx: "); if (sch->last_xmit) - pos += sprintf(r + pos, "%lu s\n", time_second - sch->last_xmit); + pos += sprintf(r + pos, "%lu s\n", + (unsigned long)(time_second - sch->last_xmit)); else pos += sprintf(r + pos, "never\n"); |