[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1458132116.2631.7.camel@tiscali.nl>
Date: Wed, 16 Mar 2016 13:41:56 +0100
From: Paul Bolle <pebolle@...cali.nl>
To: Michal Marek <mmarek@...e.com>
Cc: Josh Boyer <jwboyer@...oraproject.org>,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] kconfig: add chomp like helper function
On wo, 2016-03-16 at 12:42 +0100, Michal Marek wrote:
> For this particular use, it's probably easier to just write
>
> conf_warning("unexpected data: %.*s",
> (int)strcspn(line, "\r\n"), line);
OK. (Next time I'll try listen to the voice in my head whispering:
"There must be an easier way to do this.".)
> Or do you see more use cases for the chomp function?
No.
> No matter how the string is constructed, I like the verbose warning :)
I'll respin and resend (in a few hours).
Thanks,
Paul Bolle
Powered by blists - more mailing lists