xref: /openbmc/u-boot/common/log_console.c (revision 4555c261)
1 /*
2  * Logging support
3  *
4  * Copyright (c) 2017 Google, Inc
5  * Written by Simon Glass <sjg@chromium.org>
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 #include <common.h>
11 #include <log.h>
12 
13 static int log_console_emit(struct log_device *ldev, struct log_rec *rec)
14 {
15 	puts(rec->msg);
16 
17 	return 0;
18 }
19 
20 LOG_DRIVER(console) = {
21 	.name	= "console",
22 	.emit	= log_console_emit,
23 };
24