Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2299922ybt; Tue, 16 Jun 2020 02:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEyowMVDEBMMjUDm+RXetiAIN/QvrWmq4yyK1U/4Ao8MmrL7HSax6PiQQpr6L666yBpLgG X-Received: by 2002:a05:6402:3052:: with SMTP id bu18mr1611892edb.323.1592299359072; Tue, 16 Jun 2020 02:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592299359; cv=none; d=google.com; s=arc-20160816; b=xpNb9Y04g/2uVTc4OYe9oNsn7Ml+p1RRfEwQaR63O2YXHDuoadkixP4j5TJPTy7zy7 su67Sfg/pYTt/CMrElqcP7xVqGPZ/NJDE/06jcBV1NBXME7ohioxq8R5uAxuxZVAdyOC cGU8pqFO8peck6/O1nqXDQT6+k64I2lvCgynGYtbgU+kXWyyUN0ZVwkYvGH4Ask+LXpO ksPqj4mBbJeZ4owWNB/2rK1xq93C9TbwCIKOdpbpQrdeR/vl8w+cB1ZzYEqgS1PvfZk4 JbaLT1MDKGoWPLfg7I4unPib9ep51activ+5zmQPpC9i+Ude8doo6kqEeEMVKYqfIap1 PbZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=FzOk3C0LOB4PK64odsUc2dIhgleOjhlUR1JqxbbSUOA=; b=Hdwliu2nwjaJNKDj4FfS0bAFPzccmWtWe0xb9uK3B88ZgbOM+hyx6Mv5+hMXI+Qy+b CJElRO0PIxxzhRVXvO8LG9dBZsI6boUOD5X3wXaly2/XJdNORE+s0RD6dBz7uVmCQP2X 9laCygkJ5fHrdb3zs7Yfxg1THPYDUG7BHZHvlo0oDh2w5BKsUUB1zy7nN/JkG0ZNvFTH 6sWPTZnbGp6hOvC1NEwHnzpO7qFp1d6fx+oXLzFEbSwr2jXTACBW/hSBBEcbaSTg2Swo LvSNCRFOzglwzLCA/n4bIimjDF1+s2/QZazCjM2uAbZmoPewDJAt9K5mC/5JKO5fdKOB 6fZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si9890067ejf.724.2020.06.16.02.22.16; Tue, 16 Jun 2020 02:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbgFPJUZ (ORCPT + 99 others); Tue, 16 Jun 2020 05:20:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6333 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbgFPJUZ (ORCPT ); Tue, 16 Jun 2020 05:20:25 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EFF4E7CABB7DC5C85B51; Tue, 16 Jun 2020 17:20:22 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 16 Jun 2020 17:20:17 +0800 From: Xiongfeng Wang To: , CC: , , , Subject: [PATCH 1/2] ACPI: EC: add a newline when printing module parameter 'ec_event_clearing' Date: Tue, 16 Jun 2020 17:14:08 +0800 Message-ID: <1592298849-41530-2-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1592298849-41530-1-git-send-email-wangxiongfeng2@huawei.com> References: <1592298849-41530-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/acpi/ec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 04ce2b9..fcddda3 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; } -- 1.7.12.4