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)
This commit is contained in:
Peter Wemm 2001-06-15 07:39:12 +00:00
parent 69223861fe
commit a074038186

View File

@ -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");