Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1575249pxb; Wed, 20 Oct 2021 07:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb0Xb1wtmeGvkOsZ39+alHS7hF7Xh5QeFFVwROprx4HdBK3tHSO2p/XEdwGe9eTgv7EnjX X-Received: by 2002:a62:7ac6:0:b0:44c:8cb4:c1a9 with SMTP id v189-20020a627ac6000000b0044c8cb4c1a9mr333923pfc.44.1634741153007; Wed, 20 Oct 2021 07:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634741152; cv=none; d=google.com; s=arc-20160816; b=tNOw6wHIFSdLrOFOZImqQnjE6n9vaXZMRdGIpvqhy8ade3svtI7YiX1wfAW5g0BNKR CSwOUpj7/I/Kh9BVgIdB6JO0F91WYwrnqNDiV4d7pJ4ZbX9UgP3nGBXPSGluQROS5Qt9 +qYg+ogCCoRkMdDAf+r/2FSv8aaelYYnjm5ejiFexOPd7btmWSlDUMowtincNiKD8GUc erpMf/wE9NU2yy0w26DZXiYkmuUR5Y5KzEpLQH5ShjL05VjB26sE+W3UwqUpsuDuV46d hrWZ1JvSZ8EGa+T6EARKNiLHiRAFDSaH36+GQHzRlJ5TaNTyEHLu+FB9wvrOnZhskuaK izvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ZK8jnYkL1n0N2Nup4rimcPgfzRHmdKfqVDA18sM2YTM=; b=O+TsX9t1BFyCNvVbjgGAwxHILT0QVIDRbSVbajuLuafaBMwDL/7jrMqfKJRb4wMtTE B24N3VyQxgz9eHZQ9Ei35mSjOZ6r6oQb9KG3qCpW/iT0UIn1HkUcnD3EC70ugopF5+lT O6DZ1VPnI0P4AODkgeHXlVkDuGMYTfNPSoxybaQHay15G32cb5OKvyk+YOttzJWUNNkm PLn3zlBbKhrIZMfhC9oEXa7dN5o9sG5vFDn/5TeC2JolqPiapNMguEnkASPd28YIIoDz eP3pU05BJcWcmjhUB3AzZVaOyC2ZoBTMSqtuR6PnxeSU6F03DeyDqfHqWQK59JwIUkXZ lNTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=l186xdpb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si3502271pfu.337.2021.10.20.07.45.33; Wed, 20 Oct 2021 07:45: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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=l186xdpb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbhJTOqX (ORCPT + 99 others); Wed, 20 Oct 2021 10:46:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51444 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhJTOqW (ORCPT ); Wed, 20 Oct 2021 10:46:22 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19KCfeIp030056; Wed, 20 Oct 2021 10:44:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=ZK8jnYkL1n0N2Nup4rimcPgfzRHmdKfqVDA18sM2YTM=; b=l186xdpbquDkaZwhw4kh7VDkwZ7rbCPWbyeLTbR8maY+silu+5iac51pn3V1ywoGqXeo KUoB+6TtNA2JiwVz5obI25XuesrKxEzIQY1b8EX9Ty0zFOmMmPXrHpAF8C41t7OlSkGi wKES1kYPTXdBunbYoXRrzSvKuyo1trZVoimE16FjgnrnyyPAsXG1MbRBgauWBBK/XeNJ 1Rkk6mFzYjkQDn/SET0WIEfgjK1JkwCUF5XC5IfOA9a91AHPqKdoOu5Ve7XbeZheP+jr YHcSJnGAvlFXXRlAo19/8zLHUUik43Q1MWvmSSIcWTEcErceXMQaxQjNd9LX9k5Oh+xg DA== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 3btcaa4hb8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Oct 2021 10:44:07 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19KEc8jn005370; Wed, 20 Oct 2021 14:44:05 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma02fra.de.ibm.com with ESMTP id 3bqpca368w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Oct 2021 14:44:05 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19KEi2io42336564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Oct 2021 14:44:02 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED1E0A405F; Wed, 20 Oct 2021 14:44:01 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9419BA405B; Wed, 20 Oct 2021 14:44:01 +0000 (GMT) Received: from [9.145.45.114] (unknown [9.145.45.114]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 20 Oct 2021 14:44:01 +0000 (GMT) Message-ID: <1955ef45-d30f-5354-e514-2bc8f7d9cfb6@linux.ibm.com> Date: Wed, 20 Oct 2021 16:44:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] s390: replace snprintf in show functions with sysfs_emit Content-Language: en-US To: Qing Wang , Jan Hoeppner , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Vineeth Vijayan , Peter Oberparleiter , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <1634280655-4908-1-git-send-email-wangqing@vivo.com> From: Stefan Haberland In-Reply-To: <1634280655-4908-1-git-send-email-wangqing@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: akxf7yLa1SCqUuG80wPEEJZMnW1FFPg8 X-Proofpoint-ORIG-GUID: akxf7yLa1SCqUuG80wPEEJZMnW1FFPg8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-20_05,2021-10-20_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 adultscore=0 clxscore=1011 mlxlogscore=926 lowpriorityscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110200085 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 15.10.21 um 08:50 schrieb Qing Wang: > show() must not use snprintf() when formatting the value to be > returned to user space. > > Fix the coccicheck warnings: > WARNING: use scnprintf or sprintf. > > Use sysfs_emit instead of scnprintf or sprintf makes more sense. > > Signed-off-by: Qing Wang > --- > drivers/s390/block/dasd_devmap.c | 74 ++++++++++++++++++++-------------------- > Thanks for the DASD changes. While I am totally fine with the change itself I agree with Joe's remark. Would you like to improve your patch? Otherwise I can add a small follow on patch. Just let me know.