diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-12-29 12:15:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 21:45:32 -0500 |
commit | a2f247ef4d25fce3eaf260294bc1e16970c2a2d2 (patch) | |
tree | a30b7b392e14346881d970029861af6b36fca00b /drivers/hwmon/ad7414.c | |
parent | dc917aec77c0255ba20d582a72a0137f7321f17c (diff) | |
download | linux-a2f247ef4d25fce3eaf260294bc1e16970c2a2d2.tar.bz2 |
sfp: use precision to print non-null terminated strings
Rather than memcpy()'ing the strings and null terminate them, printf
allows non-NULL terminated strings provided the precision is not more
than the size of the buffer. Use this form to print the basic module
information rather than copying and terminating the strings.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/ad7414.c')
0 files changed, 0 insertions, 0 deletions