]> 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)
commit2508fba3638149acc3801dc1f440b0809224b02f
treedb1466e5de4bd021d8f922cb93a5b5c7b3f68574
parentf6df6e37b399394b598e3167f3154f1e6452418a
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