]> git.sur5r.net Git - u-boot/blob - common/log_console.c
libfdt: move working_fdt and FDT_RAMDISK_OVERHEAD to include/libfdt.h
[u-boot] / common / log_console.c
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 };