Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2301656ybt; Tue, 16 Jun 2020 02:25:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1GINWDgwO+4b0m7uoIL6psWPyxia0iUprPAF09T2mFOgJKGSZASd6rU0r78da94TxUVif X-Received: by 2002:a17:906:7f94:: with SMTP id f20mr1953806ejr.394.1592299546066; Tue, 16 Jun 2020 02:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592299546; cv=none; d=google.com; s=arc-20160816; b=A7CBNLj4DbKFvDVuMuVnxkIe1vxdnVmlja/LfHVf9WymSm8DhFAF6U1pdFFLZhM6o5 nvjlEIWDIciS+aHWUJNFseI/6ywpSVm/4ZNiZH35JGe4kNjQ8HyQ7Pk4OYQD9Yp0ZleB 7ZGE8BJVLYqUA1JxTAZM0vj/RXTfWfxoGZkhf1QwIwMaoaIqhD/2VXnLfFBqzWmOWGd/ G2KETjEJfkg09tk4w4BFRIHzoeRZZBhUyie6GYXnlP36MYcwfv3aa1MrCe/Kx8Zaanjq 9uRL8xnrPoFPvVTVKYDoTzYfIiXswHB2xZUkxmvGyjHgjrC6OMKHeKpd4SjQrCJ3aOc+ wA0A== 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=OJkDJbEQO03RBQM1+E2kjh3FZO7TtneLX4/8xR56leQ=; b=M6jRYJZT44SlRZ7CJJNikquzv/yh1tvGa9bo+/TMmSstIiHrKesM4bgt5K+M4vs9+f yjRtx/GlMbyY2yceRym6VMVddga566Q21Ok5DOY0443Mfe8B9OAIarfsvqwVhIWx8Gi5 ixd/x4WI32+9q9dHJfNwPBoCa+oykioPj7vaKf+8bO+Lt8xHTe8GeUwFCKNCPi7f5WBC ncZHwt1XbceEcrARcG9KJDjDqjBdj8ib5W4Mc14YX39msfw/rjVBa3Ji9ak/BBzi/38A WAFaxUNOZHKZOCM+8tjaxsCaL3Ig1Z3x45yDUWmXfbvq8NuAtw+mjFiZTx1VPLDfboK/ Ql2A== 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 d12si569469ejw.465.2020.06.16.02.25.24; Tue, 16 Jun 2020 02:25:46 -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 S1728119AbgFPJUd (ORCPT + 99 others); Tue, 16 Jun 2020 05:20:33 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:55440 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726052AbgFPJUa (ORCPT ); Tue, 16 Jun 2020 05:20:30 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0DB4DAF247A6438F2798; Tue, 16 Jun 2020 17:20:28 +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 2/2] ACPI: sysfs: add missing newlines when printing module parameters Date: Tue, 16 Jun 2020 17:14:09 +0800 Message-ID: <1592298849-41530-3-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 Add newlines for several module parameters printed by sysfs. Signed-off-by: Xiongfeng Wang --- drivers/acpi/sysfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 3a89909..6ad142d 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -214,7 +214,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", acpi_gbl_trace_method_name); + return scnprintf(buffer, PAGE_SIZE, "%s\n", acpi_gbl_trace_method_name); } static const struct kernel_param_ops param_ops_trace_method = { @@ -271,15 +271,15 @@ static int param_set_trace_state(const char *val, static int param_get_trace_state(char *buffer, const struct kernel_param *kp) { if (!(acpi_gbl_trace_flags & ACPI_TRACE_ENABLED)) - return sprintf(buffer, "disable"); + return sprintf(buffer, "disable\n"); else { if (acpi_gbl_trace_method_name) { if (acpi_gbl_trace_flags & ACPI_TRACE_ONESHOT) - return sprintf(buffer, "method-once"); + return sprintf(buffer, "method-once\n"); else - return sprintf(buffer, "method"); + return sprintf(buffer, "method\n"); } else - return sprintf(buffer, "enable"); + return sprintf(buffer, "enable\n"); } return 0; } @@ -302,7 +302,7 @@ static int param_get_acpica_version(char *buffer, { int result; - result = sprintf(buffer, "%x", ACPI_CA_VERSION); + result = sprintf(buffer, "%x\n", ACPI_CA_VERSION); return result; } -- 1.7.12.4