summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2021-03-27 20:03:02 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-14 10:38:09 +0000
commit7cc14ac25d9d40a7c2fc078c248faafbac887a5d (patch)
treefafe642d5fa78acd01388f77d169af1f9e647ab6 /util
parent879ccaa7c581c570dbf86ffcf35239a9d9f19eee (diff)
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 <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51887 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/uio_usbdebug/README2
-rw-r--r--util/uio_usbdebug/console/printk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/uio_usbdebug/README b/util/uio_usbdebug/README
index 2d523386ba..cb5a4c8a3a 100644
--- a/util/uio_usbdebug/README
+++ b/util/uio_usbdebug/README
@@ -29,7 +29,7 @@ uio_usbdebug_intel.c - Port enable code for Intel chipsets.
linux/uio_ehci_pci.c - Kernel part of the uio interface.
-console/printk.c - A do_printk() implementation so you can see debug
+console/printk.c - A printk() implementation so you can see debug
output with CONFIG_DEBUG_USBDEBUG enabled.
device/*.c lib/*.c - Some stubs for (hopefully) unneeded functions for
diff --git a/util/uio_usbdebug/console/printk.c b/util/uio_usbdebug/console/printk.c
index 3ad9b9ebaf..e0aa20169e 100644
--- a/util/uio_usbdebug/console/printk.c
+++ b/util/uio_usbdebug/console/printk.c
@@ -4,7 +4,7 @@
#include <stdarg.h>
#include <console/console.h>
-int do_printk(int msg_level, const char *const fmt, ...)
+int printk(int msg_level, const char *const fmt, ...)
{
va_list args;
int i;