summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-02-19 00:04:51 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-26 17:51:55 +0100
commit23922bbc0821270ad09bcffdf7c16b2fb4984d6e (patch)
tree69068ae30db0629a994ff0a477221514c698a280
parent694df37daf95940e923905fdd1096541d860bbfd (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gcc-plugins/frr-format.c b/tools/gcc-plugins/frr-format.c
index 6d91d2cdcd..efb2c6393c 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;