From e4ed6729526e6ff301d06eaf49bd2355e0d0be3b Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Thu, 17 Nov 2016 11:07:27 +0100 Subject: [PATCH] Cosmetic fix Fix comments in common.c and rename variable to be consistent (width -> wi). Signed-off-by: Sebastien GODARD --- common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common.c b/common.c index 77d8d34..dda9050 100644 --- a/common.c +++ b/common.c @@ -1178,21 +1178,21 @@ void cprintf_u64(int unit, int num, int wi, ...) * * IN: * @num Number of values to print. - * @width Output width. + * @wi Output width. *************************************************************************** */ -void cprintf_x(int num, int width, ...) +void cprintf_x(int num, int wi, ...) { int i; unsigned int val; va_list args; - va_start(args, width); + va_start(args, wi); for (i = 0; i < num; i++) { val = va_arg(args, unsigned int); printf("%s", sc_int_stat); - printf(" %*x", width, val); + printf(" %*x", wi, val); printf("%s", sc_normal); } @@ -1207,7 +1207,7 @@ void cprintf_x(int num, int width, ...) * IN: * @unit Default values unit. -1 if no unit should be displayed. * @num Number of values to print. - * @width Output width. + * @wi Output width. * @wd Number of decimal places. *************************************************************************** */ @@ -1270,7 +1270,7 @@ void cprintf_f(int unit, int num, int wi, int wd, ...) * * IN: * @num Number of values to print. - * @width Output width. + * @wi Output width. * @wd Number of decimal places. *************************************************************************** */ -- 2.40.0