blob: 5af73bd8be4f2c8f5c3abc6a9d7ba25ba83ea12e [file] [log] [blame]
Simon Glassc6d47532017-12-04 13:48:25 -07001/*
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};