Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1235506ybj; Thu, 7 May 2020 18:41:39 -0700 (PDT) X-Google-Smtp-Source: APiQypI+1i4tqDNCmg7T/+vE0M5utxig6Oyxr8U7ZOM1w6B+ZD/WA07XipLhiHjwYs30dkDbFnCW X-Received: by 2002:aa7:cd01:: with SMTP id b1mr205394edw.163.1588902099542; Thu, 07 May 2020 18:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588902099; cv=none; d=google.com; s=arc-20160816; b=OOu6M2LMV0tmcWlF/KGsZ+ZQpob1lb7fd3gUiXtSklHmSGx2Gf0KeNoWkl/2aRWodt fJb4QmzD7SvjDjCkdkgKdKK8dqZNZDdhpvZPTO+PyQ7hWvVpytKCDO+aYL2TH5p8+1Qy OuINP/JNUoOgXNun11H3N9zDJiS42JlLcBe82UuaBjbSXPblypeeihfaBMStKpQCvmwV w8+Xvnt2lf2efNjb8G4IFwY+Y8E8ur5hX/b3BMugEY9h6lG7xeqtSavw6+W5egqhVMre B8uOzFUAr6s8X4x3gZBTNEr4IrRaANiHoMdL1suii6Nott6eJSQGHhr5W8+SMImRwb/O AQkw== 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=P8sSe74HVigHmZLiIjIVZgtSjbJExOeJB+mVlPfouls=; b=PyPpjvENig4cWahQZZ7wcrjC/sYnqpTmTiAvMgx3Lo3ShA/2JMU5Gu/ZGxppzt0uVx guln4qzhT3hxYLNPxnx2i1rsv9TnTBPwzEvoGBvMfQk0uQMQDxl18NWeo+E9h9s75Fk/ sn2AlbYjh8zTeLcmbqUqsRFoVmQtlWawzIXki2pNa7g+WTHP04NMeNwXYsW/wmb09FNF uQDP8o0YgtlYQ3pEljmbcj7nPdK4iA0C1mfrxTKKSpfXhlMA5E82TCZcpu3ln4wL0lOo dJP6B4FFxcM+VED4xYuBtF2j1a018fxam9blg2hjo7OejR9MHAH/FUb4vbBoX2JxWZeN xPbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 b24si88012edr.338.2020.05.07.18.41.16; Thu, 07 May 2020 18:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726542AbgEHBjM (ORCPT + 99 others); Thu, 7 May 2020 21:39:12 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4284 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726514AbgEHBjM (ORCPT ); Thu, 7 May 2020 21:39:12 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 98546C53397FFD92BD33; 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 2/2] sunrpc: add missing newline when printing parameter 'auth_hashtable_size' by sysfs Date: Fri, 8 May 2020 09:33:00 +0800 Message-ID: <1588901580-44687-3-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-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org When I cat parameter '/sys/module/sunrpc/parameters/auth_hashtable_size', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/auth_hashtable_size 16[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- net/sunrpc/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 5748ad0..a9f0d17 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -81,7 +81,7 @@ static int param_get_hashtbl_sz(char *buffer, const struct kernel_param *kp) unsigned int nbits; nbits = *(unsigned int *)kp->arg; - return sprintf(buffer, "%u", 1U << nbits); + return sprintf(buffer, "%u\n", 1U << nbits); } #define param_check_hashtbl_sz(name, p) __param_check(name, p, unsigned int); -- 1.7.12.4