]> git.puffer.fish Git - matthieu/frr.git/commit
lib/printf: add %Ld/%Lu for int64_t/uint64_t
authorDavid Lamparter <equinox@diac24.net>
Sun, 12 May 2019 19:11:19 +0000 (21:11 +0200)
committerDavid Lamparter <equinox@diac24.net>
Mon, 3 Jun 2019 14:44:24 +0000 (16:44 +0200)
commit32b67a0aeb001d3974f432becd8c8783c7ed6d53
tree9a9b0c0d53762648804dfc03cbf2a81abacea55d
parent7fa480984edc26617bc3c6bc4d9bc62d3b299a67
lib/printf: add %Ld/%Lu for int64_t/uint64_t

[u]int64_t is the only type in the intX_t family that needs
special-casing for printf since the calling convention may differ
between 32-bit and 64-bit systems.

Adding the L specifier allows us to eschew the gnarly-looking PRIu64.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/printf/printf-pos.c
lib/printf/vfprintf.c