From 5f6e1748a878dac62adde2355886b372cf2c9f67 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 16 Oct 2014 18:48:26 +0300 Subject: [PATCH] err_ptr_deref: error message should say "negative" instead of "neg" It's a bit more clear. Signed-off-by: Dan Carpenter --- check_err_ptr_deref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_err_ptr_deref.c b/check_err_ptr_deref.c index 2b1fc469..a17b249c 100644 --- a/check_err_ptr_deref.c +++ b/check_err_ptr_deref.c @@ -155,7 +155,7 @@ static void match_err_ptr(const char *fn, struct expression *expr, void *unused) if (sval_is_negative(min) && sval_cmp_val(min, -4095) < 0) sm_msg("error: %s too low for ERR_PTR", sval_to_str(min)); if (sval_is_positive(max) && sval_cmp_val(max, 0) != 0) - sm_msg("error: passing non neg %s to ERR_PTR", sval_to_str(max)); + sm_msg("error: passing non negative %s to ERR_PTR", sval_to_str(max)); } void check_err_ptr_deref(int id) -- 2.11.4.GIT