]> git.puffer.fish Git - mirror/frr.git/commit
lib: allow discerning unspec width in printfrr ext
authorDavid Lamparter <equinox@diac24.net>
Fri, 26 Mar 2021 16:58:54 +0000 (17:58 +0100)
committerDavid Lamparter <equinox@diac24.net>
Tue, 30 Mar 2021 20:32:59 +0000 (22:32 +0200)
commit2d9a4e2931e4f20c6bc49b09956a1e350664e3f2
treee7b0703a18ccc7c4cf657a81de23dc559618c3dd
parent3ea794305960ed9fca230c3e0f8b1b73c2915101
lib: allow discerning unspec width in printfrr ext

With 0 currently the default value for the width specifier, it's not
possible to discern that from a %*p where 0 was passed as the length
parameter.  Use -1 to allow for that.

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