From f4373731e386a3b410f3e8acf6620111fb339abc Mon Sep 17 00:00:00 2001 From: Damien Le Moal <damien.lemoal@wdc.com> Date: Fri, 18 Jan 2019 13:45:08 +0900 Subject: lib: code cleanup Use commonly accepted styles: newlines after declarations and before return to make the code more readable. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> --- lib/sbi_console.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sbi_console.c b/lib/sbi_console.c index 6923b9a..36a4414 100644 --- a/lib/sbi_console.c +++ b/lib/sbi_console.c @@ -331,6 +331,7 @@ out: } if (out) **out = '\0'; + return pc; } @@ -338,9 +339,11 @@ int sbi_sprintf(char *out, const char *format, ...) { va_list args; int retval; + va_start(args, format); retval = print(&out, NULL, format, args); va_end(args); + return retval; } @@ -348,9 +351,11 @@ int sbi_snprintf(char *out, u32 out_sz, const char *format, ...) { va_list args; int retval; + va_start(args, format); retval = print(&out, &out_sz, format, args); va_end(args); + return retval; } -- cgit v1.2.3