Thread (16 messages) 16 messages, 4 authors, 2021-01-22

Re: [PATCH v2 3/5] lib/cmdline: Allow get_options() to take 0 to validate the input

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2021-01-22 12:16:10

On Fri, Jan 22, 2021 at 12:15:20PM +0100, Bartosz Golaszewski wrote:
On Wed, Jan 20, 2021 at 10:45 PM Andy Shevchenko
[off-list ref] wrote:
...
quoted
+ *     When @nints is 0, the function just validates the given @str and
+ *     returns amount of parseable integers as described below.
I'm not a native English speaker but it sounds like this should be
"returns the amount".
Sounds reasonable. Fixed for v3.

...
quoted
+       bool validate = nints == 0;
bool validate = (nints == 0) would be clearer IMO.
I don't see the benefit, but I have changed.

...
Same as the other patch - just put the formatting strings into the messages.
Okay, I changed.


Thanks for review!

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help