]> git.proxmox.com Git - mirror_frr.git/commit
lib: record output positions in printfrr
authorDavid Lamparter <equinox@diac24.net>
Tue, 2 Mar 2021 19:16:18 +0000 (20:16 +0100)
committerDavid Lamparter <equinox@diac24.net>
Sat, 27 Mar 2021 16:01:29 +0000 (17:01 +0100)
commit487eefcfbec8a24d639e6b8c805540d5c1fe38e8
tree49b095d2ebf319223532bd5da12f3ef641450d34
parenteba599a39756b3d9424467f1e1f4f4475dffad17
lib: record output positions in printfrr

This replaces `%n` with a safe, out-of-band option that simply records
the start and end offset of the output produced for each `%...`
specifier.

The old `%n` code is removed.

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