aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-06-15 07:39:12 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-06-15 07:39:12 +0000
commita074038186eefb73b6ef484600f04629fdbbe7d8 (patch)
tree8478b4765175e66007d538f1626bd97e5cda8da1
parent69223861fe10903a04639e967043c156316fcdc9 (diff)
Notes
-rw-r--r--sys/pci/if_mn.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/pci/if_mn.c b/sys/pci/if_mn.c
index bfd3165c690e..8d19e227c31c 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");