]> git.proxmox.com Git - mirror_frr.git/commit - lib/zlog.h
lib: record output argument positions in zlog
authorDavid Lamparter <equinox@diac24.net>
Mon, 22 Mar 2021 12:45:20 +0000 (13:45 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 18 Jun 2021 18:56:53 +0000 (20:56 +0200)
commite3daa82c1897c289384988add6932f74b0de4e9e
tree3ee16ff1e19c039e82360a353e11aa753c8c7d23
parentba9256d2d089034e66d7c06734a4495afba9513d
lib: record output argument positions in zlog

printfrr() recently acquired the capability to record start/end of
formatting outputs.  Make use of this in the zlog code so logging
targets have access to this information.

(This also records how long the `[XXXXX-XXXXX][EC 9999999]` prefix was
so log targets can choose to skip over it.)

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