scsi: isci: Convert snprintf() to sysfs_emit()
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 scsi: isci: Convert snprintf() to sysfs_emit()
Coccinnelle reports a warning
Warning: Use scnprintf or sprintf
WARNING: use scnprintf or sprintf
Signed-off-by ztt <[email protected]>
--- drivers/scsi/isci/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/isci/init.c +0 -0
@@ -137,7 +137,7 @@ static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, cstruct sas_ha_struct *sas_ha =SHOST_TO_SAS_HA (shost); struct isci_host *ihost = container_of(sas_ha, typeof(*ihost),
sas_ha);
- return snprintf(buf, PAGE_SIZE, "%d\n", ihost->id);
+ return scnprintf(buf, PAGE_SIZE, "%d\n", ihost->id);
}
static DEVICE_ATTR(isci_id, S_IRUGO, isci_show_id, NULL);