mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix type warnings on 64-bit machines.
This commit is contained in:
parent
1679c7f4f4
commit
48ecc1efc2
1 changed files with 3 additions and 3 deletions
|
|
@ -260,17 +260,17 @@ get_statistics(const char *iface)
|
|||
printf("%-60s[", stat->desc);
|
||||
switch (stat->unit) {
|
||||
case INT:
|
||||
printf("%lu", stats[stat->index]);
|
||||
printf("%u", stats[stat->index]);
|
||||
break;
|
||||
case BOOL:
|
||||
printf(stats[stat->index] ? "true" : "false");
|
||||
break;
|
||||
case PERCENTAGE:
|
||||
printf("%lu%%", stats[stat->index]);
|
||||
printf("%u%%", stats[stat->index]);
|
||||
break;
|
||||
case HEX:
|
||||
default:
|
||||
printf("0x%08lX", stats[stat->index]);
|
||||
printf("0x%08X", stats[stat->index]);
|
||||
}
|
||||
printf("]\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue