From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0C84C00A89 for ; Mon, 2 Nov 2020 09:13:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 84F7720715 for ; Mon, 2 Nov 2020 09:13:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbgKBJNx (ORCPT ); Mon, 2 Nov 2020 04:13:53 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7571 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728081AbgKBJNx (ORCPT ); Mon, 2 Nov 2020 04:13:53 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CPnK81phMzLscn; Mon, 2 Nov 2020 17:13:48 +0800 (CST) Received: from DESKTOP-2DH7KI2.china.huawei.com (10.67.101.108) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 17:13:40 +0800 From: Chengsong Ke To: CC: , , Subject: Re: [PATCH v2] ubifs: Fix the printing type of c->big_lpt Date: Mon, 2 Nov 2020 17:13:40 +0800 Message-ID: <20201102091340.30712-1-kechengsong@huawei.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20201031085420.1316-1-kechengsong@huawei.com> References: <20201031085420.1316-1-kechengsong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.101.108] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 31, 2020 at 9:56 AM Chengsong Ke wrote: > > Ubifs uses %d to print c->big_lpt, but c->big_lpt is a variable of > type unsigned int and should be printed with %u. > > Well, it is: > unsigned int big_lpt:1; > So, either 0 or 1. > > Does changing it to %u silence some static checker or is there some > other problem I don't see right now? :-) > > Thanks, > //Richard This is just a coding style issue, I found in the ubifs code. :-) Thanks, //Chengsong Ke