
20 May
2021
20 May
'21
7:51 p.m.
On Thu, 20 May 2021 at 04:05, Rasmus Villemoes rasmus.villemoes@prevas.dk wrote:
We have to use the *printf variant which returns the strlen() of the resulting string, not the how-much-would-have-been-printed-given-enough-space, in order to use that value to inspect the last character in the string.
Signed-off-by: Rasmus Villemoes rasmus.villemoes@prevas.dk
common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
But I think it should check for a -ve value too.