candump: print number of dropped frames as unsigned values
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/376/head
parent
5736818292
commit
0d26ba9ea3
|
|
@ -783,11 +783,11 @@ int main(int argc, char **argv)
|
||||||
__u32 frames = obj->dropcnt - obj->last_dropcnt;
|
__u32 frames = obj->dropcnt - obj->last_dropcnt;
|
||||||
|
|
||||||
if (silent != SILENT_ON)
|
if (silent != SILENT_ON)
|
||||||
printf("DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n",
|
printf("DROPCOUNT: dropped %u CAN frame%s on '%s' socket (total drops %u)\n",
|
||||||
frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt);
|
frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt);
|
||||||
|
|
||||||
if (log)
|
if (log)
|
||||||
fprintf(logfile, "DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n",
|
fprintf(logfile, "DROPCOUNT: dropped %u CAN frame%s on '%s' socket (total drops %u)\n",
|
||||||
frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt);
|
frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt);
|
||||||
|
|
||||||
obj->last_dropcnt = obj->dropcnt;
|
obj->last_dropcnt = obj->dropcnt;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue