Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1479011ybk; Sun, 10 May 2020 18:26:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKFhOhtjMKNNhxliL8BlJwwJPVCxvfSDalDlv76AYe3ODvZpAJ899OJL/ucFCE93iEtx5sv X-Received: by 2002:a17:906:3605:: with SMTP id q5mr11508512ejb.363.1589160393951; Sun, 10 May 2020 18:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589160393; cv=none; d=google.com; s=arc-20160816; b=TOffBcjmgFopMYZZ/JCLMpdbQDPYl0hqjNlPQ9K8HkCJSxBYB7lASSgFHdxnRmAtwz /QayTdr7HmxLBU7Rng0zryI3TaUlhc8NNEifXaa230cxYjykbhOiiINYqG6ka1qj8IdM ida1ODXjQ4HOTaYgzLRryO8fx2vInXdWnlS/fdVU1kUZ+x5uUVG5X3ZM4XENOfPznrKh vkQQphzjawgr+OOkCvY9MW3FcTlmynE6Kp7ys6vuTMFrbOkYzdAmb7NfFg2rqGJ+iNE0 EzEJBEF04Kvk7d9W1gI3suzzuGZL2XBkjhcHHMco3qqKrIHXCP9DLPqf62T1bmhSXm2T tJ5w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=w+swuH6M0wbM2DEoDMr+0brQ0GK2Hq5W54UpKGnSLhQ=; b=SzvbL/i6DzwOgYW0+WcAeCWGNe1QSKj5HWME9bircBQZQ3Qvo6qeREe8yYCA5C1WJ5 Vyff5tS3dW3RtU8dy2YC8ajWiA9hCae5lltZ1Cy2BJn+yDjDbw1vg2tgGjLWQsvfR+3o E2HMGsxM5URqzu1vl1h6ONa4wIjH6HMWxIyuVUuVskxq7aunfqkfMbdp324DAR5/b6iU g0z0AuqKKySD6+Lx47cbVMCkaAYPwjqYwhbnZu1hHKuRWnjmh+0VionUihtNNaqRRxFb ga95ifMk0ZLRFvWevDcXdpbAymAK8MIKqM/Bu+7gCdNfqHLekUT0SorwsCIIqaWg7af+ NPWA== 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 f23si5149903ejf.414.2020.05.10.18.26.08; Sun, 10 May 2020 18:26:33 -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 S1728873AbgEKBYc (ORCPT + 99 others); Sun, 10 May 2020 21:24:32 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:47356 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727789AbgEKBYc (ORCPT ); Sun, 10 May 2020 21:24:32 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 796B9EC8409A43A0084B; Mon, 11 May 2020 09:24:29 +0800 (CST) Received: from [127.0.0.1] (10.166.213.90) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 09:24:21 +0800 Subject: Re: [PATCH -next 0/2] sparc: use snprintf() in show() methods To: Joe Perches , References: <20200509091849.116954-1-chenzhou10@huawei.com> CC: , From: chenzhou Message-ID: <887e9dc1-745b-fd2d-39fe-3354e25c6ce8@huawei.com> Date: Mon, 11 May 2020 09:24:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.213.90] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, i made a mistake, should be scnprintf(). On 2020/5/9 19:40, Joe Perches wrote: > On Sat, 2020-05-09 at 17:18 +0800, Chen Zhou wrote: >> snprintf() returns the number of bytes that would be written, >> which may be greater than the the actual length to be written. > [] >> Chen Zhou (2): >> sparc: use snprintf() in show_pciobppath_attr() in pci.c >> sparc: use snprintf() in show_pciobppath_attr() in vio.c > Your subjects are a bit off: snprintf vs scnprintf > > > >