From: Damien Le Moal Date: Thu, 2 Dec 2021 05:56:47 +0000 (+0900) Subject: ata: libata-scsi: use sysfs_emit() X-Git-Tag: v6.6.17~8332^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0667391e191c00fb80d5a227bef977ecb12b5b70;p=platform%2Fkernel%2Flinux-rpi.git ata: libata-scsi: use sysfs_emit() Use sysfs_emit() instead of snprintf() in ata_scsi_park_show(). Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 313e947..5f27f5c 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -121,7 +121,7 @@ static ssize_t ata_scsi_park_show(struct device *device, unlock: spin_unlock_irq(ap->lock); - return rc ? rc : snprintf(buf, 20, "%u\n", msecs); + return rc ? rc : sysfs_emit(buf, "%u\n", msecs); } static ssize_t ata_scsi_park_store(struct device *device,