fix compile errors in scsi_sysfs.c
PATCH 1/1 fix compile errors in scsi_sysfs.c
In scsi_sysfs.c there is a call to snscanf, but I could only find this function defined and in use by the toshiba acpi files. The attached patch replaces snscanf with sscanf.
Mike Christie
[email protected]
drivers/scsi/scsi_sysfs.c +1 -2
@@ -195,8 +195,7 @@ { \struct scsi_device *sdev; \ sdev =to_scsi_device (dev); \ -snscanf (buf,20 , format_string, &sdev->field); \ -return count; \ +return sscanf (buf, format_string, &sdev->field); \ } \ static DEVICE_ATTR(field, S_IRUGO | S_IWUSR, sdev_show_##field, sdev_store_##field)