Message ID | 20201110164903.137290-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBBUJVP6QKGQEA2HXIOI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::240; helo=mail-lj1-x240.google.com; envelope-from=swupdate+bncbcxploxj6ikrbbujvp6qkgqea2hxioi@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=TRsrDlg/; dkim-atps=neutral Received: from mail-lj1-x240.google.com (mail-lj1-x240.google.com [IPv6:2a00:1450:4864:20::240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CVv325KdPz9sRK for <incoming@patchwork.ozlabs.org>; Wed, 11 Nov 2020 03:49:15 +1100 (AEDT) Received: by mail-lj1-x240.google.com with SMTP id j3sf191294lji.19 for <incoming@patchwork.ozlabs.org>; Tue, 10 Nov 2020 08:49:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605026951; cv=pass; d=google.com; s=arc-20160816; b=do3mbC3QorILZW997E5xJ1WuWZlqPbGwYM5RKyxciSiPuLXXbEBENJW+7wHVjtleB+ BaQYb1V78Ev7XBIJ4i7tt0eAUqLKChtRy5E82SgMewoOqX6gTZ4nnOTQeA7K4l4fZmNn 4b5+AyuwDAfQXCIfQa4tG/fO8wXvlKNm/sbrmehMp0nmLHvgrJyNJJJOR71JfdX6PLW8 Z8Tn9hab8J/SVl9PDuPDAxlpsAqi4C/ABjQ3nlMjmzTYUrQk5w0MxOlMqCBOwFSRk7/7 WNquB3qeWZOeoFWEvjVlRow+fLz+8zSVZTN23xZtG/pAtnJHkoqRBr4mH6ehSAgTdM+J V2Fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=7Z4dqX0YrD2mHrXLin6pa5O2iuvZiDj9cIj9Tzdxu8E=; b=ua7ppsnxaMI3RW3LdlXIdW0YyGH8aYEfF+XuL3uulqYrR7VIRIDmXR9LBykzVIYVjm QKJ96geqvomeVo3MhdOOJvsqQEfuv8XubHa/WBG9hQhI9G8Amis6/BuLJZVnCl48YD6k 7oJ3P/DNQ0sgdUZ7lXCl5d8BUbQz8kf32MSskdXubH7P6gKXBrsiF3X/TK3pJ3B/yYlQ FJj0Vnw134kQBD1lG9poHIXQoXwcjH4cHsYnSPCd6sJ4bK6nMsGTUpAiopJkph0nkw2u NuQNKPkgdmWcMYoE+uHFsFPDs0nXIG4RXiZzlaaGfO1dPmvW5uJkdaL/+qTNWXQZN9KF nVOQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=7Z4dqX0YrD2mHrXLin6pa5O2iuvZiDj9cIj9Tzdxu8E=; b=TRsrDlg/y+l0yh3BSraPaBrBPKIIPOQe9JcxEdEyW4iM5SXTm8uMONQak53sweASpD i9i7ovSZ65Wl90g8TR/bvd+NdRa6W6WTe827zvdjPyn+hHiWlchKKBzZcX9+BiOOT2Nv DceMD/+TrhRiNkUOKek3XHNFnsORnpBRokXxsmzXp26RQvD9IAWKCyCyGKPV/wzw6Siq jJ4TC39VPmfSVrelB0tx/5oKaxVA0/TyGHTMr82bJYm4OcSy5ixqboUtdzBbDhEk8HtK wA05OOkYnmxLZgZiZZKI0fYZl9/VFeEVbdiS9IWkpOuAQx6cXIFGmuOqkYxXBLnXPVYc Bz5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=7Z4dqX0YrD2mHrXLin6pa5O2iuvZiDj9cIj9Tzdxu8E=; b=Zw53hcE19AjMwwNaQ+SUYpip7phnQ3B//06j91j3UsiHXNBT1rzPmHak6Hj6pu3nMd pH8aY336vA1K46knJJu72MwjbQla3h/9odkwwqn1HpiaC4y7FSKBPghP6DYwlAfMis2O rVLwEnNxlFyhs9/TxbN/3C4C3K6C/EcCpfOMqYLbvymJsKO357K7q1qtBsAw/MzD8pck No59S1uidrz6k+LomQgdI2Qwz8/SyJpCvflKqkDf1HZidyaUYnIDOwen5tciL/Hn7A6/ liiQsWrvwFLPV684DzKdiHzM190M1hFIjIcL0MVrtMIUboAxWKfpsxrwo6WSqy+whds+ 0Amg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532E3qjdtgKSS6gGeq1aZLoCDiMy7q64R7BxjCqumlu/DsMTxLhg arHz0F+vwLylTB8LE3yQSPY= X-Google-Smtp-Source: ABdhPJxu6hrcXM42hdCoku5Q3Cr/DTSlaXGg747hwNr75gxm8yT45l/YyYeuZ96ZECXvbtonjelaVw== X-Received: by 2002:a05:6512:481:: with SMTP id v1mr3048183lfq.132.1605026950834; Tue, 10 Nov 2020 08:49:10 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:ccc2:: with SMTP id c185ls710668lfg.3.gmail; Tue, 10 Nov 2020 08:49:09 -0800 (PST) X-Received: by 2002:a05:6512:3054:: with SMTP id b20mr4366027lfb.130.1605026949450; Tue, 10 Nov 2020 08:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605026949; cv=none; d=google.com; s=arc-20160816; b=W6FRXHDAazj8yJ+HZsO225XtM1a3W5MAej09JfMaJjCbT+uCMO8QAx2r+dUvtPgxCJ I3Zzh4pHNKvlJE7dS79IgWEJ8iE5AIbek13T6IWhbQgLUubqslAwN2ivVx8umK8vSEHD /ElJ8u7gy7TXUfkLmdmC+hFKjZxQAbHj8uRTu7DodlBzy/R0lXOhF2ovata5hMTtHXDx 6oIurb4WmgI+h5if6ONRYC2PWBlfH7aVHQrV7X/3WeMK7dDD7Shi++GdXyGoEejYnHfD 6ZxSJ20SV7XmNmYLMIp0aCibEtm3qpLHKYN3Qd4b1xgmZsEMXFbf9EGM9WY7VY7DM0ob /6tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=UOH6BETBnpzuqKOXAacEBSbi6cwUH4N2jnX7Rqe9hQs=; b=bYKoxTSnNlxtTOiazYdK5k/zOhH6Wz274bYK87BMfJM5vJfPGjoiKLKjBRS5k7jX76 POO548g+shvvbR4gd1hwTMNPOlvNSDqFwdU/PsCJTTJemecp/fq3jplbwP+mmK/ztU5u H4gDaTs8jnzKxVN7kio1oJLNVgbyIgaBJZmsNYgXAkaI70CCI4T2/kwfci3FljDXlXTj Rum77J7Vha4w2liT2DJ7P8etYgtssfe4gKcCsXftPC9aj8u1ohcHavVGh2VhnqDwM3Q8 fBlQna3e4k+O355fXaHeQkgIU2tPnL+djlTGc5ADjGeC44CyLfG6ke/YaLQ97LegQeqT hAYQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id h19si343412ljh.7.2020.11.10.08.49.09 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2020 08:49:09 -0800 (PST) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CVv2q6L30z1rwDg; Tue, 10 Nov 2020 17:49:07 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CVv2q64jkz1r56Q; Tue, 10 Nov 2020 17:49:07 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id rHimWy7bs4cL; Tue, 10 Nov 2020 17:49:07 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 10 Nov 2020 17:49:07 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E6C6645404CB; Tue, 10 Nov 2020 17:49:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id ZON1Ix89G6vi; Tue, 10 Nov 2020 17:49:04 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id A5673454035D; Tue, 10 Nov 2020 17:49:04 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] console: change default colours for TRACE Date: Tue, 10 Nov 2020 17:49:03 +0100 Message-Id: <20201110164903.137290-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
console: change default colours for TRACE
|
expand
|
diff --git a/core/notifier.c b/core/notifier.c index e4ca3c6..c3a7376 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -140,8 +140,8 @@ struct logcolor consolecolors[] = { [ERRORLEVEL] = {BRIGHT, RED, COLOR_NONE}, [WARNLEVEL] = {BRIGHT, YELLOW, COLOR_NONE}, [INFOLEVEL] = {BRIGHT, GREEN, COLOR_NONE}, - [DEBUGLEVEL] = {BRIGHT, BLACK, COLOR_NONE}, - [TRACELEVEL] = {BRIGHT, BLACK, COLOR_NONE} + [DEBUGLEVEL] = {RESET, COLOR_NONE, COLOR_NONE}, + [TRACELEVEL] = {RESET, COLOR_NONE, COLOR_NONE} }; static void set_console_color(int level, char *buf, size_t size) {
Do not set colours as default for TRACE / DEBUG as they can be not readable on many console. Let the user the choice to decide this by setting the colours in configuration file. Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)