Searched refs:old_fmt (Results 1 – 1 of 1) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_kernel_printf.c | 941 static bool has_hex_prefix(const char *orig_fmt, const char *old_fmt) in has_hex_prefix() argument 943 return old_fmt >= orig_fmt + 2 && in has_hex_prefix() 944 old_fmt[-2] == '0' && _tolower(old_fmt[-1]) == 'x'; in has_hex_prefix() 1050 const char *old_fmt = fmt; in do_check_printf_call() local 1069 if (spec.flags & SPECIAL && has_hex_prefix(orig_fmt, old_fmt)) in do_check_printf_call() 1070 sm_warning("'%.2s' prefix is redundant when # flag is used", old_fmt-2); in do_check_printf_call() 1072 if (spec.base != 16 && has_hex_prefix(orig_fmt, old_fmt)) in do_check_printf_call() 1074 old_fmt-2, (int)(fmt-old_fmt), old_fmt); in do_check_printf_call() 1076 check_cast_from_pointer(old_fmt, read, arg, vaidx); in do_check_printf_call() 1085 sm_error("format specifier '%.*s' invalid", read, old_fmt); in do_check_printf_call() [all …]
|