[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-s390
Subject:    Re: [PATCH] s390/dasd: Fix a precision vs width bug in dasd_feature_list()
From:       Stefan Haberland <sth () linux ! ibm ! com>
Date:       2019-06-27 14:14:54
Message-ID: 7b33439f-6f70-74de-0861-91081e6e048d () linux ! ibm ! com
[Download RAW message or body]

On 26.06.19 12:06, Dan Carpenter wrote:
> 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>
> ---
> Not tested.

Thanks for the patch. I tested it and it works as expected.
Will integrate it through the s390 tree.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic