Message ID | 202211170934005278113@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | [linux-next] ACPI: sysfs: use sysfs_emit() to instead of scnprintf() | expand |
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 2d81c74..7db3b53 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -198,7 +198,7 @@ static int param_set_trace_method_name(const char *val, static int param_get_trace_method_name(char *buffer, const struct kernel_param *kp) { - return scnprintf(buffer, PAGE_SIZE, "%s\n", acpi_gbl_trace_method_name); + return sysfs_emit(buffer, "%s\n", acpi_gbl_trace_method_name); } static const struct kernel_param_ops param_ops_trace_method = {