]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'sparc-scnprintf'
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 22:35:58 +0000 (15:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 22:35:58 +0000 (15:35 -0700)
commitad23582d1ff0332ec3e865b5865f67b10f68e869
tree73d8849b942454df345de2b5243ad644e6694093
parent05e828fd0a1cf039e55dcd4448f2f7c17b4f30d6
parentcd9e8e0a752fa97c880dbbded3adc14b2a395cbb
Merge branch 'sparc-scnprintf'

Chen Zhou says:

====================
sparc: use scnprintf() in show() methods

snprintf() returns the number of bytes that would be written,
which may be greater than the the actual length to be written.

show() methods should return the number of bytes printed into the
buffer. This is the return value of scnprintf().
====================

Signed-off-by: David S. Miller <davem@davemloft.net>