[PATCH v2 1/4] cli: run_commandf(): small fixups

Tom Rini trini at konsulko.com
Fri Mar 31 16:15:13 CEST 2023


On Mon, Mar 20, 2023 at 11:23:11AM +0300, Evgeny Bachinin wrote:

> * vsnprintf() can truncate cmd, hence it makes no sense to launch such
> command (it's broken). Moreover, it's better to signalize to the caller
> about such case (for facilitating debugging or bug hunting).
> 
> * Fix kernel-doc warnings:
>   include/command.h:264: info: Scanning doc for run_commandf
>   include/command.h:268: warning: contents before sections
>   include/command.h:271: warning: No description found for return value
>                                   of 'run_commandf'
> 
> * Add printf-like format attribute to validate at compile-time the format
> string against parameters's type.
> 
> * Fix compilation error in case of -Wall, -Werror, -Wextra:
> error: variable ‘i’ set but not used [-Werror=unused-but-set-variable]
> 
> * Drop extra ret variable.
> 
> Signed-off-by: Evgeny Bachinin <EABachinin at sberdevices.ru>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230331/df42c33f/attachment.sig>


More information about the U-Boot mailing list