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)
commit921d2eb09673af8e74aa11369a4de700e676a9c1
treedb1466e5de4bd021d8f922cb93a5b5c7b3f68574
parentfda17afc6166e975bec1197bd94cd2a3317bce3f
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