diff options
author | Xiongfeng Wang <wangxiongfeng2@huawei.com> | 2020-06-16 17:14:08 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-06-22 17:17:18 +0200 |
commit | fc293b7a0ede644e003655f1c53b9a97b4472bfa (patch) | |
tree | 9d8e6b5738c5e0ad816f023c7264b714f80326f9 /drivers/acpi | |
parent | 48778464bb7d346b47157d21ffde2af6b2d39110 (diff) | |
download | linux-stable-fc293b7a0ede644e003655f1c53b9a97b4472bfa.tar.gz linux-stable-fc293b7a0ede644e003655f1c53b9a97b4472bfa.tar.bz2 linux-stable-fc293b7a0ede644e003655f1c53b9a97b4472bfa.zip |
ACPI: EC: add newline when printing 'ec_event_clearing' module parameter
When I cat acpi module parameter
'/sys/module/acpi/parameters/ec_event_clearing', it displays as follows.
It is better to add a newline for easy reading.
[root@hulk-202 ~]# cat /sys/module/acpi/parameters/ec_event_clearing
query[root@hulk-202 ~]#
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 04ce2b96c3da..fcddda3d6712 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -2059,13 +2059,13 @@ static int param_get_event_clearing(char *buffer, { switch (ec_event_clearing) { case ACPI_EC_EVT_TIMING_STATUS: - return sprintf(buffer, "status"); + return sprintf(buffer, "status\n"); case ACPI_EC_EVT_TIMING_QUERY: - return sprintf(buffer, "query"); + return sprintf(buffer, "query\n"); case ACPI_EC_EVT_TIMING_EVENT: - return sprintf(buffer, "event"); + return sprintf(buffer, "event\n"); default: - return sprintf(buffer, "invalid"); + return sprintf(buffer, "invalid\n"); } return 0; } |