diff options
author | David Lamparter <equinox@diac24.net> | 2021-02-19 00:04:51 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-03-26 17:51:55 +0100 |
commit | 23922bbc0821270ad09bcffdf7c16b2fb4984d6e (patch) | |
tree | 69068ae30db0629a994ff0a477221514c698a280 | |
parent | Merge pull request #8154 from AnuradhaKaruppiah/evpn-mh-irb-2 (diff) | |
download | frr-23922bbc0821270ad09bcffdf7c16b2fb4984d6e.tar.xz frr-23922bbc0821270ad09bcffdf7c16b2fb4984d6e.zip |
tools/gcc-plugin: fix format precision/width type
`%*.*pEXT` applied the extension type to the precision and width (*.*)
too. Oops.
Signed-off-by: David Lamparter <equinox@diac24.net>
-rw-r--r-- | tools/gcc-plugins/frr-format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gcc-plugins/frr-format.c b/tools/gcc-plugins/frr-format.c index 6d91d2cdc..efb2c6393 100644 --- a/tools/gcc-plugins/frr-format.c +++ b/tools/gcc-plugins/frr-format.c @@ -2343,7 +2343,7 @@ check_argument_type (const format_char_info *fci, /* note printf extension type checks are *additional* - %p must always * be pointer compatible, %d always int compatible. */ - if (!kef) + if (first_wanted_type->kind != CF_KIND_FORMAT || !kef) return true; const struct kernel_ext_fmt *kef_now; |