From: Richard Weinberger <richard.weinberger@gmail.com>
To: Chengsong Ke <kechengsong@huawei.com>
Cc: Richard Weinberger <richard@nod.at>,
Sascha Hauer <s.hauer@pengutronix.de>,
linux-mtd@lists.infradead.org,
LKML <linux-kernel@vger.kernel.org>,
wangfangpeng1@huawei.com
Subject: Re: [PATCH v2] ubifs: Fix the printing type of c->big_lpt
Date: Sat, 31 Oct 2020 21:44:12 +0100 [thread overview]
Message-ID: <CAFLxGvxB3-ryVLPtS0XhZnu+4w-gSzzw=BV+1mKTGt3mOKbeiw@mail.gmail.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
next prev parent reply other threads:[~2020-10-31 20:44 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 [this message]
2020-11-02 9:13 ` Chengsong Ke
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='CAFLxGvxB3-ryVLPtS0XhZnu+4w-gSzzw=BV+1mKTGt3mOKbeiw@mail.gmail.com' \
--to=richard.weinberger@gmail.com \
--cc=kechengsong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--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;
as well as URLs for NNTP newsgroup(s).