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>
		
			
				
	
	
		
			18 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| 
 | |
| #include <stdio.h>
 | |
| #include <stdarg.h>
 | |
| #include <console/console.h>
 | |
| 
 | |
| int printk(int msg_level, const char *const fmt, ...)
 | |
| {
 | |
| 	va_list args;
 | |
| 	int i;
 | |
| 
 | |
| 	va_start(args, fmt);
 | |
| 	i = vfprintf(stderr, fmt, args);
 | |
| 	va_end(args);
 | |
| 
 | |
| 	return i;
 | |
| }
 |