diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2019-01-18 13:45:08 +0900 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-21 09:58:33 +0530 |
commit | f4373731e386a3b410f3e8acf6620111fb339abc (patch) | |
tree | b9517af6c75d86fe0ff6bba61ffb11b2ff9a931a | |
parent | 6939d345ab3f7c5360a7de3fb0000a9da5096f97 (diff) |
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>
-rw-r--r-- | lib/sbi_console.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |