[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1390483232-7160-1-git-send-email-a.ryabinin@samsung.com>
Date: Thu, 23 Jan 2014 17:20:30 +0400
From: Andrey Ryabinin <a.ryabinin@...sung.com>
To: Jason Baron <jbaron@...mai.com>
Cc: linux-kernel@...r.kernel.org,
Andrey Ryabinin <a.ryabinin@...sung.com>
Subject: [PATCH 1/3] dynamic_debug: remove wrong error message
parse_lineno() returns either negative error code or zero.
We don't need to print something here because if parse_lineno
fails it will print error message.
Signed-off-by: Andrey Ryabinin <a.ryabinin@...sung.com>
---
lib/dynamic_debug.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 600ac57..f959c39 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -348,10 +348,8 @@ static int ddebug_parse_query(char *words[], int nwords,
}
if (last)
*last++ = '\0';
- if (parse_lineno(first, &query->first_lineno) < 0) {
- pr_err("line-number is <0\n");
+ if (parse_lineno(first, &query->first_lineno) < 0)
return -EINVAL;
- }
if (last) {
/* range <first>-<last> */
if (parse_lineno(last, &query->last_lineno)
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists