From: David Lamparter Date: Thu, 18 Feb 2021 23:04:51 +0000 (+0100) Subject: tools/gcc-plugin: fix format precision/width type X-Git-Tag: base_8.0~195^2~15 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=23922bbc0821270ad09bcffdf7c16b2fb4984d6e;p=mirror%2Ffrr.git 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 --- 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;