From 7cc14ac25d9d40a7c2fc078c248faafbac887a5d Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 27 Mar 2021 20:03:02 +0100 Subject: Rename do_printk() to printk() The indirection seems unnecessary. The macros throw features like `-Wmisleading-indentation` off, though. Default build for QEMU/Q35 is unchanged. Change-Id: Ie4eab935a367b5ad6b38225c4973d41d9f70ef10 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/51887 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/soc/amd/picasso/psp_verstage/printk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/soc/amd/picasso') diff --git a/src/soc/amd/picasso/psp_verstage/printk.c b/src/soc/amd/picasso/psp_verstage/printk.c index a99d8bc35d..c56f78c298 100644 --- a/src/soc/amd/picasso/psp_verstage/printk.c +++ b/src/soc/amd/picasso/psp_verstage/printk.c @@ -11,19 +11,19 @@ void console_hw_init(void) __cbmemc_init(); } -int do_printk(int msg_level, const char *fmt, ...) +int printk(int msg_level, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); - i = do_vprintk(msg_level, fmt, args); + i = vprintk(msg_level, fmt, args); va_end(args); return i; } -int do_vprintk(int msg_level, const char *fmt, va_list args) +int vprintk(int msg_level, const char *fmt, va_list args) { int i, cnt, log_this; char buf[256]; -- cgit v1.2.3