David Lamparter
ebc61d81b3
lib: remove unused struct prefix_ptr
...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-27 13:21:18 +02:00
Donatas Abraitis
f70c91dcef
bgpd: Add %pBP
printfrr() extension to print IP(hostname)
for BGP peer
...
Replace existing bgp_peer_hostname() function.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-31 21:20:11 +03:00
David Lamparter
c5c7de20fa
doc/developer: daemon-specific printfrr formats
...
Group together and extend docs on daemon-specific printfrr formats.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-30 16:14:28 +02:00
David Lamparter
543a26848d
lib: add %pFXh
to print prefix w/o prefixlen
...
Mostly for pimd, for the time being. May be removed again if unused.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-11 13:43:19 +01:00
David Lamparter
f59e688226
lib: add %pTH
/ %pTHD
for printing thread info
...
Refer to docs in doc/developer for details.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-14 13:33:57 +01:00
David Lamparter
2c76ba433f
lib: add time formatting printfrr exts
...
Refer to docs in doc/developer for details.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-14 13:33:57 +01:00
David Lamparter
2c5b4d80ef
lib: add s
option to pI4
/pI6
/pIA
printfrr
...
Adding an `s` after these printfrr specifiers replaces 0.0.0.0 / :: in
the output with a star (`*`). This is primarily intended for use with
multicast, e.g. to print `(*,G)`.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-14 11:57:46 +01:00
David Lamparter
d51f8b0f1e
pimd: move %pSG4
to %pPSG4
...
Since this is only used in very few places, moving it out of the way is
reasonable. (`%pSG` will be pim_sgaddr)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-12 18:24:07 +01:00
David Lamparter
936c12d71b
doc/developer: fix C struct references
...
Sphinx wants `c:struct:: foo` rather than `c:type:: struct foo`.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-10-14 19:02:31 +02:00
G. Paul Ziemba
016cfe701e
lib,doc,tests: printfrr %pNHcg, %pNHci
...
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
2021-09-14 10:06:57 -07:00
David Lamparter
19b1a1c6a9
doc/developer: improve printfrr extension docs
...
The table is getting rather clunky, let's just break this out and make
it pretty there.
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-30 22:34:56 +02:00
David Lamparter
a4cb97a6c1
lib: add %*pHX
+ %*pHS
hexdump in printfrr
...
(I'll get to `zlog_hexdump()` in a separate pass.)
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-30 22:34:51 +02:00
David Lamparter
9c4380daee
lib: add %pVA
recursive printfrr
...
Analogous to Linux kernel `%pV` (but our mechanism expects 2 specifier
chars and `%pVA` is clearer anyway.)
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-30 22:32:59 +02:00
Rafael Zalamena
e12114f2f7
doc: update the FRR format table
...
Let other developers know that we have `%pIA` to print `struct ipaddr *`.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2021-03-14 14:07:52 -03:00
Mark Stapp
0a9720bda9
doc: fix sphinx warnings
...
Fix a couple of sphinx source processing warnings.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-01-12 13:31:07 -05:00
Donald Sharp
ac86c0785e
doc: Add %pBD print formatter to doc
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-10-17 08:52:35 -04:00
David Lamparter
6c19e557a5
doc: logging: clarify per-thread buffering
...
Log buffer flushing is thread-local.
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-07 15:41:04 +02:00
David Lamparter
0eb5f93863
doc: new logging subsystem
...
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-01 06:53:26 +02:00
Donald Sharp
bf9735b240
doc: Fixup some missing syntax
...
We were missing some syntax indicators for stuff in doc/developer
add them in.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-14 14:17:52 -05:00
David Lamparter
2a37d6c5df
doc: add some printfrr() docs
...
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03 18:57:31 +02:00
Ruben Kerkhof
56f0bea718
doc: fix a couple of typos
...
Found with https://github.com/codespell-project/codespell
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2019-03-20 20:08:33 +01:00
David Lamparter
3e5d2f718a
doc/developer: logging guide
...
This roughly outlines when to use which logging function. It's
certainly something to have to point people to, so they get things nice
and right - and so we get at least somewhat consistent behaviour for the
user.
Signed-off-by: David Lamparter <equinox@diac24.net>
2018-08-22 17:39:34 +02:00