]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: Fix printf() type mismatches on 32-bit architectures
authorBen Hutchings <ben.hutchings@mind.be>
Mon, 28 Jun 2021 23:25:59 +0000 (01:25 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 29 Jun 2021 18:10:14 +0000 (11:10 -0700)
commit33cf9306c824c29c57879fd5182f7a09696af750
treec0d05f813d2fb1e48477d2a9de968eaf085dbdd1
parent4ac0383a598d4bddf13cbd8272f0ea7711614b79
devlink: Fix printf() type mismatches on 32-bit architectures

devlink currently uses "%lu" to format values of type uint64_t,
but on 32-bit architectures uint64_t is defined as unsigned
long long and this does not work correctly.

Fix this by using the standard macro PRIu64 instead.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c