diff options
author | David Lamparter <equinox@diac24.net> | 2019-06-12 17:08:01 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-06-12 19:35:43 +0200 |
commit | afb35622ef61212f0fe960a31c2326a9379bceae (patch) | |
tree | a3e691f3bd7e9d59871462d1bab8bdef63d3dd24 /tests/lib | |
parent | lib: use snprintfrr() in "hidden" printfs (diff) | |
download | frr-afb35622ef61212f0fe960a31c2326a9379bceae.tar.xz frr-afb35622ef61212f0fe960a31c2326a9379bceae.zip |
lib: make "%Ld" work for int64_t
... without compiler plugins.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_printfrr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/test_printfrr.c b/tests/lib/test_printfrr.c index c8ef150b0..24de3fa88 100644 --- a/tests/lib/test_printfrr.c +++ b/tests/lib/test_printfrr.c @@ -27,6 +27,7 @@ static int errors; +static void printcmp(const char *fmt, ...) PRINTFRR(1, 2); static void printcmp(const char *fmt, ...) { va_list ap; @@ -58,6 +59,7 @@ static void printcmp(const char *fmt, ...) errors++; } +static void printchk(const char *ref, const char *fmt, ...) PRINTFRR(2, 3); static void printchk(const char *ref, const char *fmt, ...) { va_list ap; |