diff options
| author | David Lamparter <equinox@diac24.net> | 2021-03-22 10:12:42 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-03-30 22:34:56 +0200 |
| commit | 7798203f5cf93b35aed96925f3ffd6fa00a44790 (patch) | |
| tree | 11649e2d2d210eef677ac6a07065b805278cd636 /lib/printfrr.h | |
| parent | a4cb97a6c1d8718be40a16c1c7fc0b2738d17947 (diff) | |
lib: add `%pSQ` and `%pSE` string escape formats
These are for string quoting (`%pSQ`) and string escaping (`%pSE`); the
sets / escape methods are currently rather "basic" and might be extended
in the future.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/printfrr.h')
| -rw-r--r-- | lib/printfrr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/printfrr.h b/lib/printfrr.h index 7083e8b582..4338ac3a2f 100644 --- a/lib/printfrr.h +++ b/lib/printfrr.h @@ -283,6 +283,9 @@ struct va_format { #pragma FRR printfrr_ext "%pHS" (signed char *) #pragma FRR printfrr_ext "%pHS" (unsigned char *) #pragma FRR printfrr_ext "%pHS" (void *) + +#pragma FRR printfrr_ext "%pSE" (char *) +#pragma FRR printfrr_ext "%pSQ" (char *) #endif /* when using non-ISO-C compatible extension specifiers... */ |
