Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1235131ybj; Thu, 7 May 2020 18:40:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLNCMdJUdZQIOL97XkC9law6r+5KnqZCrzxjevIJF/CxzLYM97wdWZcUlxIvdBuwsOgpBZq X-Received: by 2002:a50:f78c:: with SMTP id h12mr183441edn.207.1588902052298; Thu, 07 May 2020 18:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588902052; cv=none; d=google.com; s=arc-20160816; b=LWw/nPEnrrJU4z62BkC3Pbb42vvlIj/GRduLaXNQwcXvwQC2NLht91S8vFv+GlTy8u T08s+NjS4HPkLjBKzk5YY8rpqUYkLunqXsuT1g/7/6G5DKnpEsLAxaiyW6JaVWOO1UqM fg1Lw4Qidk2+PabBLuP1a9+QID28cX0gopHbYwBArsqELBsLI/3QgAdliN+FkMgdfLkb znHG/XncB3jNkXeJJ5h+AC7q2px5ZYAhjbXLfZmZgqtFQFZqgNMy19PKBPYlzFTVjiz3 Fw418lpyWk29j4kDBcOqqiQOP81+LyZGr13eyEsvO+x8jWYK8NLRS2xvY2TCY2x93E5w SnhA== 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=R2LmByCNnmR7wZ8XRNoSq/B2V+lREb6UWtfpjm6TyQ4=; b=X2MKkspAk7bouq7msMyJLOJ1C3o8kvpc5h2GxN26vDrsVJLaa/1XnD8JGC9d6tc0qd a5kRZ5IGMA/xm3ueEkX4+sNlXsPh3aZNatwhQ7xTl4MmL3iZbvi8dgyXpPsdAua+R9pZ K6PreFFT8cE9duNtSqJ2C3KaEFwzso7pEMFfTKXIz8MfuLffmvzMqZWLASgJOg0Gvx7c jQG6JGplJwfNzW1kiSz3J7EQXg+F7ym13j8vUEdAvUJ6KtHbyzBGLRrKQuPUChpcYA7O dxadmzFc6FD9mEILoop93Y6yH07eJoFzaEOK1c8Wa1/vGHrJM5ffbXt3v1ocEAcSAytr E7QQ== 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 n7si82359ejy.248.2020.05.07.18.40.29; Thu, 07 May 2020 18:40:52 -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 S1726897AbgEHBjO (ORCPT + 99 others); Thu, 7 May 2020 21:39:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42760 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726509AbgEHBjN (ORCPT ); Thu, 7 May 2020 21:39:13 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C3308472343513D2840E; Fri, 8 May 2020 09:39:10 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 May 2020 09:39:04 +0800 From: Xiongfeng Wang To: , , , , , CC: , , , Subject: [PATCH 1/2] sunrpc: add missing newline when printing parameter 'pool_mode' by sysfs Date: Fri, 8 May 2020 09:32:59 +0800 Message-ID: <1588901580-44687-2-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1588901580-44687-1-git-send-email-wangxiongfeng2@huawei.com> References: <1588901580-44687-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 parameter '/sys/module/sunrpc/parameters/pool_mode', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/pool_mode global[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- net/sunrpc/svc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 187dd4e..d8ef47f 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -88,15 +88,15 @@ struct svc_pool_map svc_pool_map = { switch (*ip) { case SVC_POOL_AUTO: - return strlcpy(buf, "auto", 20); + return strlcpy(buf, "auto\n", 20); case SVC_POOL_GLOBAL: - return strlcpy(buf, "global", 20); + return strlcpy(buf, "global\n", 20); case SVC_POOL_PERCPU: - return strlcpy(buf, "percpu", 20); + return strlcpy(buf, "percpu\n", 20); case SVC_POOL_PERNODE: - return strlcpy(buf, "pernode", 20); + return strlcpy(buf, "pernode\n", 20); default: - return sprintf(buf, "%d", *ip); + return sprintf(buf, "%d\n", *ip); } } -- 1.7.12.4