]> git.baikalelectronics.ru Git - kernel.git/commit
ata: sata_fsl: fix sscanf() and sysfs_emit() format strings
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 8 Feb 2022 06:16:09 +0000 (15:16 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 8 Feb 2022 06:31:20 +0000 (15:31 +0900)
commitd5cc8102226b04431096882432d3a88e47cc9532
treedb1466e5de4bd021d8f922cb93a5b5c7b3f68574
parente29060485b2d35d12d342d7201474b8d0323dd00
ata: sata_fsl: fix sscanf() and sysfs_emit() format strings

Use the %u format for unsigned int parameters handling with sscanf() and
sysfs_emit() to avoid compilation warnings. In
fsl_sata_rx_watermark_store(), the call to sscanf() to parse a single
argument is replaced with a call to kstrtouint().

While at it, also replace the printk(KERN_ERR) calls with dev_err()
calls and fix blank lines in fsl_sata_rx_watermark_store().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/sata_fsl.c