diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-13 07:51:54 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-14 13:33:57 +0100 |
| commit | 2c76ba433f2b0d0b180bca20ddc2f28751dd9b70 (patch) | |
| tree | 87aa3f67c878c8809f590e4414dc6f9131caf8e7 /lib/printfrr.h | |
| parent | 2c5b4d80efc507f7244303d959f99af8061dacf3 (diff) | |
lib: add time formatting printfrr exts
Refer to docs in doc/developer for details.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/printfrr.h')
| -rw-r--r-- | lib/printfrr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/printfrr.h b/lib/printfrr.h index 37f1f9c8cd..1b5ddb8ca4 100644 --- a/lib/printfrr.h +++ b/lib/printfrr.h @@ -286,6 +286,10 @@ struct va_format { #pragma FRR printfrr_ext "%pSE" (char *) #pragma FRR printfrr_ext "%pSQ" (char *) + +#pragma FRR printfrr_ext "%pTS" (struct timespec *) +#pragma FRR printfrr_ext "%pTV" (struct timeval *) +#pragma FRR printfrr_ext "%pTT" (time_t *) #endif /* when using non-ISO-C compatible extension specifiers... */ |
