lkml.org 
[lkml]   [2015]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] block: drop extra (and bogus) printk
Date
When setting an invalid scheduler through sysfs, two log entries will be
added. Also, when running 'echo foo > /sys/block/DISK/queue/scheduler'
the second one will includes the extra '\n':

[10465.216944] elevator: type foo not found
[10465.216953] elevator: switch to foo
failed

This patch simply drops the second printk().

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
block/elevator.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/block/elevator.c b/block/elevator.c
index 59794d0d38e3..0ac9ea519201 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -997,7 +997,6 @@ ssize_t elv_iosched_store(struct request_queue *q, const char *name,
if (!ret)
return count;

- printk(KERN_ERR "elevator: switch to %s failed\n", name);
return ret;
}

--
2.1.4


\
 
 \ /
  Last update: 2015-02-27 00:21    [W:0.041 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site