]> git.ipfire.org Git - people/ms/u-boot.git/blame - common/log_console.c
Merge git://git.denx.de/u-boot-cfi-flash
[people/ms/u-boot.git] / common / log_console.c
CommitLineData
c6d47535
SG
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
13static int log_console_emit(struct log_device *ldev, struct log_rec *rec)
14{
15 puts(rec->msg);
16
17 return 0;
18}
19
20LOG_DRIVER(console) = {
21 .name = "console",
22 .emit = log_console_emit,
23};