diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2023-01-26 14:21:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2023-01-27 12:01:17 +0100 |
commit | 0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 (patch) | |
tree | c8e418c2049ef79101e62821f2b49506654eb4bd /lib/yang_wrappers.c | |
parent | Merge pull request #12575 from anlancs/fix/build-vtysh-missing-dir (diff) | |
download | frr-0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1.tar.xz frr-0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1.zip |
*: apply proper format string attributes
So that we get warnings about broken format strings.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/yang_wrappers.c')
-rw-r--r-- | lib/yang_wrappers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/yang_wrappers.c b/lib/yang_wrappers.c index ea21d1324..d22379dd2 100644 --- a/lib/yang_wrappers.c +++ b/lib/yang_wrappers.c @@ -58,6 +58,7 @@ } \ } while (0) +PRINTFRR(2, 0) static inline const char * yang_dnode_xpath_get_canon(const struct lyd_node *dnode, const char *xpath_fmt, va_list ap) @@ -75,6 +76,7 @@ yang_dnode_xpath_get_canon(const struct lyd_node *dnode, const char *xpath_fmt, return lyd_get_value(&__dleaf->node); } +PRINTFRR(2, 0) static inline const struct lyd_value * yang_dnode_xpath_get_value(const struct lyd_node *dnode, const char *xpath_fmt, va_list ap) |