Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp255545ybk; Sat, 9 May 2020 01:54:13 -0700 (PDT) X-Google-Smtp-Source: APiQypLHDjZsZulJlXYrQFiilYDRxtJnCsXYjCn78yB2sHe+ugNGTzRoe3BKC3K2nyAL4msjQ3pH X-Received: by 2002:a05:6402:30bb:: with SMTP id df27mr5250771edb.267.1589014453274; Sat, 09 May 2020 01:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589014453; cv=none; d=google.com; s=arc-20160816; b=In+xLto+mMo5Ub6rAd5ZOMQEx7lPuy/SIbVcPkpL0OZUX74Xy53Lpf3bja74dn/0q5 xMuKl+wv+inNC0UKA/XYfnbyOkPuUXVN0htq9vQpYKhAd3JX+kqZOHYykmOXP9aDyKH7 q3avdKXgkOWBjDpDrZ0dZvMgnA6IYj7K6/qoGRYxUHa85cWBI3IjyUSgNwuG3KkcdNm8 J4NZkyPO6TiXMLUGb1Eru4tP9EZ2BZaSEBxVlssBwbKH3OjesvNILCLyFDpDVJXfmhn3 cS3Gw1uEk0zkskdPqyrgCBMdw7qQCYe1mFnQI1CJlNBeuIsdICB9KDbzCyFnHWaIvDVp H5qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DwaC3h/eOn4vAHJXnp17MLH3RvusgW798oKQrGHRgFE=; b=kNuYFJxj9mLFB4USZ879ulCLcC3jTPdMl/6ExpIaBPv030qwW0aIBBjNSObW8ktWEm 2gMcXpMO5GO72IYX6s5oAXPkaWXVW6rbBRBYMBny3y2NMG5KYhAjXqX43JNXNZZsz/v0 oz45wwp7HiWjMMUKHm+cP84B5nGxv0QEgw5Q8SVA0obN0U7Fekl3IxFneGKl4B3opk0O 3ivqPDFTtmu0p2ThHa6ZIB/dBD/LYNGijx7ytXXoMkYc3GUZnFBqMZFV+yaZDFdHhAZA urE4487OAPHA4qMuYZYcN1qhm7pTzhBEVqRyyMITHhJLGbIwEb99azFdZ/niqtGszNgu mgtQ== 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 ss10si2473557ejb.103.2020.05.09.01.53.51; Sat, 09 May 2020 01:54:13 -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 S1727812AbgEIIw3 (ORCPT + 99 others); Sat, 9 May 2020 04:52:29 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4372 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725930AbgEIIw2 (ORCPT ); Sat, 9 May 2020 04:52:28 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 03E00BF11E02B47FFDF8; Sat, 9 May 2020 16:52:27 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 16:52:18 +0800 From: Chen Zhou To: , , CC: , , Subject: [PATCH -next 0/3] s390: use scnprintf() in show() methods Date: Sat, 9 May 2020 16:56:05 +0800 Message-ID: <20200509085608.41061-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Chen Zhou (3): s390/crypto: use scnprintf() instead of snprintf() s390: use scnprintf() in sys_##_prefix##_##_name##_show s390/protvirt: use scnprintf() instead of snprintf() arch/s390/crypto/prng.c | 14 +++++++------- arch/s390/kernel/ipl.c | 2 +- arch/s390/kernel/uv.c | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) -- 2.20.1