]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: bcm47xx_nvram: _really_ correct size_t printf format
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Sep 2019 18:31:15 +0000 (11:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Sep 2019 18:31:15 +0000 (11:31 -0700)
commit92e99df1cda0f7f187706c267dfe00824e08217e
treeab9fcc00f6883cefbb1d48c310fbf66240976ad8
parent9767395beebbb04692c32a884283787a49026958
firmware: bcm47xx_nvram: _really_ correct size_t printf format

Commit ea82deee4d82 ("firmware: bcm47xx_nvram: Correct size_t printf
format") was wrong, and changed a printout of 'header.len' - which is an
u32 type - to use '%zu'.

It apparently did pattern matching on the other case, where it printed
out 'nvram_len', which is indeed of type 'size_t'.

Rather than undoing the change, this just makes it use the variable that
the change seemed to expect to be used.

Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Paul Burton <paul.burton@mips.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/broadcom/bcm47xx_nvram.c