Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/814556/?format=api
{ "id": 814556, "url": "http://patchwork.ozlabs.org/api/patches/814556/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170916212331.170463-8-sjg@chromium.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170916212331.170463-8-sjg@chromium.org>", "list_archive_url": null, "date": "2017-09-16T21:23:20", "name": "[U-Boot,07/13] log: Add a console driver", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "83aa8ca272e69eb0110d11cae04f6fdba6cc9858", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 3184, "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api", "username": "sjg", "first_name": "Simon", "last_name": "Glass", "email": "sjg@chromium.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170916212331.170463-8-sjg@chromium.org/mbox/", "series": [ { "id": 3473, "url": "http://patchwork.ozlabs.org/api/series/3473/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3473", "date": "2017-09-16T21:23:14", "name": "log: Add a new logging feature", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3473/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/814556/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814556/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"d8vmFqbD\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xvljw39Vrz9t2S\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 07:28:04 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 39FF4C21E26; Sat, 16 Sep 2017 21:25:46 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E3ABAC21DD0;\n\tSat, 16 Sep 2017 21:24:29 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid B803AC21E26; Sat, 16 Sep 2017 21:24:12 +0000 (UTC)", "from mail-oi0-f50.google.com (mail-oi0-f50.google.com\n\t[209.85.218.50])\n\tby lists.denx.de (Postfix) with ESMTPS id 463F7C21DDF\n\tfor <u-boot@lists.denx.de>; Sat, 16 Sep 2017 21:24:09 +0000 (UTC)", "by mail-oi0-f50.google.com with SMTP id y195so2373340oia.13\n\tfor <u-boot@lists.denx.de>; Sat, 16 Sep 2017 14:24:09 -0700 (PDT)", "from kiwi.bld.corp.google.com ([2620:0:10f2:0:b470:b7b0:9c28:669e])\n\tby smtp.gmail.com with ESMTPSA id\n\tu13sm4817549oif.54.2017.09.16.14.24.06\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 16 Sep 2017 14:24:07 -0700 (PDT)", "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 721D6140A54; Sat, 16 Sep 2017 15:24:06 -0600 (MDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=WQlRBKpqqIOhSWMR+tm1XaeZ/YvM0pohVLX71kysWSc=;\n\tb=d8vmFqbDq50fXH4v6U8nmGUatx+Sqwa17SB4mA/tRcv4wx0a/d0TKP0bX7hS6EynWi\n\tN8MxPwO4VR33JjKI7f5yCyoweHmnqUzOTZO+gtsmGFmHzrnqfdvUTXQ33iRypswGzKEa\n\t3Dlul846/a4fCCGITF8wDIwbnOSbhA3giLlk6o/ypi8bU82j9glh727kS41ZVYXQ94J/\n\tXNKRCx03tA7+XBAiKIgrWH71jb7kIMfKLHqoGOu2SwilSxitAXnFUiLhqBzGNCF2jE/1\n\tZAZVu52o3Ommv3NjIG2dvjOsGE8GIqIGE7mkCdJx4ACSTZSkUIJ0KdgaAuOi8nYyKJTs\n\tUm5g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=WQlRBKpqqIOhSWMR+tm1XaeZ/YvM0pohVLX71kysWSc=;\n\tb=e8n+05BtOflR1rHC6j2+TeSZ5FZQG7Yr7hgjaMvHMuOWs2O8LfwM40qZuKJebbck6o\n\ty6v3ojYLxwYmQocJi/FFGNDq2qAsp+PhFDATzJWJM8i0uW0XuIO++KJ5yf/XUAxzD+TT\n\tK6jls5xJCwsiJncMU8rODMY1xTLRD5OLXNgJ+JAZ1WTKlZCIaViKlNkEn45cjw7yYhnc\n\t4tsG6YS8Ggyz1f3bEyP6iOyMsYt9r/KkmARWIHarra11/rtAQtg6N/dtpoPQ71ZAkEyd\n\t9Fn5BbuS13KEqVd3JyORP1FIyer3/vNUm2e3hywoGbGNdxwqur08YqIe4QDrdh2TjduU\n\tpIew==", "X-Gm-Message-State": "AHPjjUhf6RxBMGJuHCogtejtXtQd8IiX1WT4PK6Y7SPraR8+soHRLAxF\n\tTy7s/QCrAbTolWez", "X-Google-Smtp-Source": "AOwi7QAAKnfvWtRxmEVld9CLGJa/tKXLl8fThS+TUoCXd6ORQy5HFhxB7kuY2f0MukgOg59TNNWjzA==", "X-Received": "by 10.202.171.201 with SMTP id u192mr30619370oie.6.1505597047823;\n\tSat, 16 Sep 2017 14:24:07 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "U-Boot Mailing List <u-boot@lists.denx.de>", "Date": "Sat, 16 Sep 2017 15:23:20 -0600", "Message-Id": "<20170916212331.170463-8-sjg@chromium.org>", "X-Mailer": "git-send-email 2.14.1.690.gbb1197296e-goog", "In-Reply-To": "<20170916212331.170463-1-sjg@chromium.org>", "References": "<20170916212331.170463-1-sjg@chromium.org>", "Cc": "Tom Rini <trini@konsulko.com>, Andy Yan <andy.yan@rock-chips.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tJagan Teki <jagan@openedev.com>, Franklin <fcooper@ti.com>", "Subject": "[U-Boot] [PATCH 07/13] log: Add a console driver", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "It is useful to display log messages on the console. Add a simple driver\nto handle this.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n common/Kconfig | 20 ++++++++++++++++++++\n common/Makefile | 1 +\n common/log_console.c | 23 +++++++++++++++++++++++\n 3 files changed, 44 insertions(+)\n create mode 100644 common/log_console.c", "diff": "diff --git a/common/Kconfig b/common/Kconfig\nindex cbccc8ae26..ba4578e870 100644\n--- a/common/Kconfig\n+++ b/common/Kconfig\n@@ -438,6 +438,26 @@ config LOG_SPL_MAX_LEVEL\n \t 6 - detail\n \t 7 - debug\n \n+config LOG_CONSOLE\n+\tbool \"Allow log output to the console\"\n+\tdepends on LOG\n+\tdefault y\n+\thelp\n+\t Enables a log driver which writes log records to the console.\n+\t Generally the console is the serial port or LCD display. Only the\n+\t log message is shown - other details like level, category, file and\n+\t line number are omitted.\n+\n+config LOG_SPL_CONSOLE\n+\tbool \"Allow log output to the console in SPL\"\n+\tdepends on LOG_SPL\n+\tdefault y\n+\thelp\n+\t Enables a log driver which writes log records to the console.\n+\t Generally the console is the serial port or LCD display. Only the\n+\t log message is shown - other details like level, category, file and\n+\t line number are omitted.\n+\n endmenu\n \n config DTB_RESELECT\ndiff --git a/common/Makefile b/common/Makefile\nindex d37c8d5636..9db0f4ca2d 100644\n--- a/common/Makefile\n+++ b/common/Makefile\n@@ -129,5 +129,6 @@ obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o\n obj-$(CONFIG_CMD_DFU) += dfu.o\n obj-y += command.o\n obj-$(CONFIG_$(SPL_)LOG) += log.o\n+obj-$(CONFIG_$(SPL_)LOG_CONSOLE) += log_console.o\n obj-y += s_record.o\n obj-y += xyzModem.o\ndiff --git a/common/log_console.c b/common/log_console.c\nnew file mode 100644\nindex 0000000000..5af73bd8be\n--- /dev/null\n+++ b/common/log_console.c\n@@ -0,0 +1,23 @@\n+/*\n+ * Logging support\n+ *\n+ * Copyright (c) 2017 Google, Inc\n+ * Written by Simon Glass <sjg@chromium.org>\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <log.h>\n+\n+static int log_console_emit(struct log_device *ldev, struct log_rec *rec)\n+{\n+\tputs(rec->msg);\n+\n+\treturn 0;\n+}\n+\n+LOG_DRIVER(console) = {\n+\t.name\t= \"console\",\n+\t.emit\t= log_console_emit,\n+};\n", "prefixes": [ "U-Boot", "07/13" ] }