Home
last modified time | relevance | path

Searched refs:sm_warning (Results 1 – 25 of 75) sorted by relevance

123

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_kernel_printf.c196 sm_warning("invalid repeated qualifier '%c'", *fmt); in format_decode()
412 sm_warning("'%%p%c6' can only be followed by c", fmt[0]); in ip6()
414 sm_warning("'%%pi6' does not allow flag c"); in ip6()
457 sm_warning("'%%ph' cannot be followed by '%c'", fmt[1]); in hex_string()
494 sm_warning("it is pointless to pass flag F to %%pm"); in mac_address_string()
540 sm_warning("'%%pC' can only be followed by one of [nr]"); in check_clock()
568 sm_warning("%%pNF cannot be followed by '%c'", fmt[2]); in netdev_feature()
617 sm_warning("%%pg cannot be followed by '%c'", fmt[1]); in block_device()
827 sm_warning("argument %d to %.*s specifier has type '%s'", in hexbyte()
845 sm_warning("KERN_* level not at start of string"); in check_format_string()
[all …]
H A Dcheck_precedence.c87 sm_warning("add some parenthesis here?"); in match_condition()
99 sm_warning("maybe use && instead of &"); in match_condition()
108 sm_warning("add some parenthesis here?"); in match_binop()
120 sm_warning("shift has higher precedence than mask"); in match_mask()
130 sm_warning("compare has higher precedence than mask"); in match_mask_compare()
141 sm_warning("subtract is higher precedence than shift"); in match_subtract_shift()
H A Dcheck_sizeof.c38 sm_warning("was 'sizeof(*%s)' intended?", ptr_name); in check_pointer()
72 sm_warning("was 'sizeof(*%s)' intended?", name); in check_passes_pointer()
110 sm_warning("sizeof(NUMBER)?"); in check_sizeof_number()
117 sm_warning("sizeof(&pointer)?"); in match_sizeof()
119 sm_warning("sizeof(sizeof())?"); in match_sizeof()
122 sm_warning("taking sizeof binop"); in match_sizeof()
H A Dcheck_or_vs_and.c78 sm_warning("was && intended here instead of ||?"); in check_or()
115 sm_warning("was || intended here instead of &&?"); in check_and()
149 sm_warning("suspicious bitop condition"); in match_condition()
163 sm_warning("bitwise AND condition is false here"); in match_condition()
178 sm_warning("odd binop '0x%llx & 0x%llx'", left.uvalue, right.uvalue); in match_binop()
H A Dcheck_signed.c62 sm_warning("'%s' %s can't fit into %s '%s'", in match_assign()
78 sm_warning("assigning %s to unsigned variable '%s'", in match_assign()
81 sm_warning("value %s can't fit into %s '%s'", in match_assign()
225 sm_warning("unsigned '%s' is never less than zero.", name); in print_unsigned_never_less_than_zero()
289 sm_warning("impossible condition '(%s) => (%s %s %s)'", name, in match_condition()
298 sm_warning("always true condition '(%s) => (%s %s %s)'", name, in match_condition()
H A Dcheck_shift_to_zero.c40 sm_warning("right shifting more than type allows %d vs %lld", type_bits(type), bits.value); in match_binop()
67 sm_warning("mask and shift to zero"); in match_binop2()
85 sm_warning("right shift assign to zero"); in match_assign()
H A Dcheck_return_negative_var.c36 sm_warning("returning -%s()", macro); in match_return()
49 sm_warning("should this return really be negated?"); in match_return()
H A Dcheck_no_if_block.c34 sm_warning("if statement not indented"); in match_if_stmt()
49 sm_warning("for statement not indented"); in match_for_stmt()
H A Dcheck_assign_vs_compare.c28 sm_warning("was '== %s' instead of '='", sval_to_str(val)); in check_constant()
47 sm_warning("was '== %s' instead of '='", str); in check_address()
H A Dcheck_logical_instead_of_bitwise.c52 sm_warning("should this be a bitwise op?"); in match_logic()
63 sm_warning("should this be a bitwise op?"); in match_assign()
H A Dcheck_get_user_overflow.c147 sm_warning("check for integer over/underflow '%s'", name); in check_expr()
149 sm_warning("check for integer underflow '%s'", name); in check_expr()
151 sm_warning("check for integer overflow '%s'", name); in check_expr()
H A Dcheck_kunmap.c39 sm_warning("passing the wrong variable to kunmap()"); in check_assignment()
61 sm_warning("passing the wrong variable to kmap_atomic()"); in match_kunmap_atomic()
H A Dcheck_macros.c36 sm_warning("the '%s' macro might need parens", name); in match_inside()
57 sm_warning("the '%s' macro might need parens", name); in match_one_side()
H A Dcheck_signed_integer_overflow_check.c61sm_warning("signed overflow undefined. '%s %s %s'", left_name, show_special(expr->op), right_name); in match_condition()
95 sm_warning("potential negative subtraction from max '%s'", str); in match_binop()
H A Dcheck_free_strict.c91 sm_warning("'%s' was already freed.", name); in match_symbol()
197 sm_warning("passing freed memory '%s'", name); in match_call()
216 sm_warning("returning freed memory '%s'", name); in match_return()
262 sm_warning("'%s' double freed", name); in set_param_freed()
H A Dcheck_64bit_shift.c49 sm_warning("should '%s' be a 64 bit type?", str); in match_shift_mask()
88 sm_warning("should '%s' be a 64 bit type?", name); in match_shift_assignment()
H A Dcheck_free.c74 sm_warning("'%s' was already freed.", name); in match_symbol()
181 sm_warning("passing freed memory '%s'", name); in match_call()
202 sm_warning("returning freed memory '%s'", name); in match_return()
H A Dcheck_return_efault.c79 sm_warning("maybe return -EFAULT instead of the bytes remaining?"); in match_return_var()
114 sm_warning("maybe return -EFAULT instead of the bytes remaining?"); in match_return_call()
H A Dcheck_off_by_one_relative.c55 sm_warning("potentially one past the end of array '%s[%s]'", array_str, offset_str); in array_check()
126 sm_warning("potential off by one '%s[]' limit '%s'", array_name, equal_name); in array_check_data_info()
H A Dcheck_pointer_math.c94 sm_warning("potential pointer math issue ('%s' is a %d bit pointer)", in match_binop()
125 sm_warning("potential pointer math issue ('%s' is a %d bit pointer)", in check_assign()
H A Dcheck_bit_shift.c66 sm_warning("'%s' is a shifter (not for '%s').", in match_assign()
82 sm_warning("bit shifter '%s' used for logical '%s'", in match_binop()
H A Dcheck_zero_to_err_ptr.c150 sm_warning("passing zero to '%s'", fn); in match_err_ptr()
157 sm_warning("passing a valid pointer to '%s'", fn); in match_err_ptr()
H A Dsmatch.c289 sm_warning("%s is not accessible -- ignored.", in get_data_dir()
313 sm_warning("%s is not accessible.", dir); in get_data_dir()
314 sm_warning("Use --no-data or --data to suppress this message."); in get_data_dir()
H A Dcheck_indenting.c64 sm_warning("curly braces intended?"); in missing_curly_braces()
196 sm_warning("inconsistent indenting"); in match_stmt()
H A Dcheck_select.c30 sm_warning("boolean comparison inside select"); in match_select()

123