]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Fix a precision vs width bug in dasd_feature_list()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Jun 2019 10:06:58 +0000 (13:06 +0300)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 2 Jul 2019 14:00:26 +0000 (16:00 +0200)
commit93cc045d1c75a71913fdceb9f4df51d5585805e8
tree6fe068f61d33c04893440e95f520f0621056229a
parent4b38b86c66f78be4efc9ac9816d26649896a46f8
s390/dasd: Fix a precision vs width bug in dasd_feature_list()

The "len" variable is the length of the option up to the next option or
to the end of the string which ever first.  We want to print the invalid
option so we want precision "%.*s" but the format is width "%*s" so it
prints up to the end of the string.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/block/dasd_devmap.c