From: Chengsong Ke <kechengsong@huawei.com>
To: <richard@nod.at>
Cc: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
<wangfangpeng1@huawei.com>
Subject: Re: [PATCH v2] ubifs: Fix the printing type of c->big_lpt
Date: Mon, 2 Nov 2020 17:13:40 +0800 [thread overview]
Message-ID: <20201102091340.30712-1-kechengsong@huawei.com> (raw)
In-Reply-To: <20201031085420.1316-1-kechengsong@huawei.com>
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 prev parent reply other threads:[~2020-11-02 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-31 8:54 [PATCH v2] ubifs: Fix the printing type of c->big_lpt Chengsong Ke
2020-10-31 20:44 ` Richard Weinberger
2020-11-02 9:13 ` Chengsong Ke [this message]
2020-11-02 7:46 kechengsong
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=20201102091340.30712-1-kechengsong@huawei.com \
--to=kechengsong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--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;
as well as URLs for NNTP newsgroup(s).