Re: [PATCH] block: Remove leading whitespace and trailing newline in elevator switch error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/05/2017 11:22 PM, markus@xxxxxxxxxxxxxxx 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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux