efi/printf: Fix minor bug in precision handling
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 18 May 2020 19:07:01 +0000 (15:07 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 08:31:25 +0000 (10:31 +0200)
commit77e48db04a02ebd00229281c26575979b0b465e0
tree9fddf25380dca5ef93e6c7c249b0bb6a56ca2f17
parent3b8350959cba0df4070741618e50c367319793bb
efi/printf: Fix minor bug in precision handling

A negative precision should be ignored completely, and the presence of a
valid precision should turn off the 0 flag.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-10-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/vsprintf.c