ifconfig: Fix printf on geneve for 32-bit architectures
Replace uint64_t type with uintmax_t in printf to fix warnings
on 32-bit architectures.
Reported by: Jenkins
Fixes: 688e289ee9 ("ifconfig: Add support for geneve")
Differential Revision: https://reviews.freebsd.org/D55184
This commit is contained in:
@@ -403,10 +403,10 @@ geneve_status_nl(if_ctx *ctx)
|
||||
geneve_data.ifla_ftable_nospace);
|
||||
}
|
||||
|
||||
printf("\n\t\tstats: tso %lu, txcsum %lu, rxcsum %lu",
|
||||
geneve_data.ifla_stats_tso,
|
||||
geneve_data.ifla_stats_txcsum,
|
||||
geneve_data.ifla_stats_rxcsum);
|
||||
printf("\n\t\tstats: tso %ju, txcsum %ju, rxcsum %ju",
|
||||
(uintmax_t)geneve_data.ifla_stats_tso,
|
||||
(uintmax_t)geneve_data.ifla_stats_txcsum,
|
||||
(uintmax_t)geneve_data.ifla_stats_rxcsum);
|
||||
}
|
||||
|
||||
putchar('\n');
|
||||
|
||||
Reference in New Issue
Block a user