From: kechengsong <kechengsong@huawei.com>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: Richard Weinberger <richard@nod.at>,
Sascha Hauer <s.hauer@pengutronix.de>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
LKML <linux-kernel@vger.kernel.org>,
"wangfangpeng (A)" <wangfangpeng1@huawei.com>
Subject: Re: [PATCH v2] ubifs: Fix the printing type of c->big_lpt
Date: Mon, 2 Nov 2020 07:46:18 +0000 [thread overview]
Message-ID: <c5dc46a06f784380a7c3f8186059fc1a@huawei.com> (raw)
On Sat, Oct 31, 2020 at 9:56 AM Chengsong Ke <kechengsong@huawei.com> 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
next reply other threads:[~2020-11-02 7:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 7:46 kechengsong [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-10-31 8:54 Chengsong Ke
2020-10-31 20:44 ` Richard Weinberger
2020-11-02 9:13 ` Chengsong Ke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c5dc46a06f784380a7c3f8186059fc1a@huawei.com \
--to=kechengsong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard.weinberger@gmail.com \
--cc=richard@nod.at \
--cc=s.hauer@pengutronix.de \
--cc=wangfangpeng1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®