public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: drop extra (and bogus) printk
@ 2015-02-26 22:56 Luis Henriques
  2015-03-19 17:47 ` henrix
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Henriques @ 2015-02-26 22:56 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: drop extra (and bogus) printk
  2015-02-26 22:56 [PATCH] block: drop extra (and bogus) printk Luis Henriques
@ 2015-03-19 17:47 ` henrix
  0 siblings, 0 replies; 2+ messages in thread
From: henrix @ 2015-03-19 17:47 UTC (permalink / raw)
  To: Luis Henriques; +Cc: Jens Axboe, linux-kernel

Ping?  I've sent these 3 patches almost a month ago...

Cheers,
--
Luís

On Thu, Feb 26, 2015 at 10:56:48PM +0000, Luis Henriques wrote:
> 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
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-19 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 22:56 [PATCH] block: drop extra (and bogus) printk Luis Henriques
2015-03-19 17:47 ` henrix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox