Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: megaraid: Convert sysfs snprintf() to sysfs_emit()

Fix up sysfs show entries to use sysfs_emit()

Link: https://lore.kernel.org/r/20220831140325.396295-1-zhangxuezhi3@gmail.com
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Xuezhi Zhang <zhangxuezhi1@coolpad.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Xuezhi Zhang and committed by
Martin K. Petersen
68a97feb 59f4e39d

+2 -2
+2 -2
drivers/scsi/megaraid/megaraid_mbox.c
··· 3979 3979 3980 3980 app_hndl = mraid_mm_adapter_app_handle(adapter->unique_id); 3981 3981 3982 - return snprintf(buf, 8, "%u\n", app_hndl); 3982 + return sysfs_emit(buf, "%u\n", app_hndl); 3983 3983 } 3984 3984 3985 3985 ··· 4048 4048 } 4049 4049 } 4050 4050 4051 - return snprintf(buf, 36, "%d %d %d %d\n", scsi_id, logical_drv, 4051 + return sysfs_emit(buf, "%d %d %d %d\n", scsi_id, logical_drv, 4052 4052 ldid_map, app_hndl); 4053 4053 } 4054 4054