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