From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] block: Remove leading whitespace and trailing newline in elevator switch error message To: "markus@trippelsdorf.de" , Bart Van Assche References: <20170506052243.GB291@x4> Cc: "linux-block@vger.kernel.org" From: Jens Axboe Message-ID: Date: Mon, 8 May 2017 10:53:43 -0600 MIME-Version: 1.0 In-Reply-To: <20170506052243.GB291@x4> Content-Type: text/plain; charset=windows-1252 List-ID: On 05/05/2017 11:22 PM, markus@trippelsdorf.de wrote: > > Trying to switch to a non-existing elevator currently results in garbled > dmesg output, e.g.: > > # echo " foo" > /sys/block/sda/queue/scheduler > > elevator: type foo not found > elevator: switch to foo > failed > > (note the leading whitespace and unintended line break.) > > Fix by removing the leading whitespace and stripping the trailing newline. Added, thanks. -- Jens Axboe