Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC6B9C77B7A for ; Thu, 1 Jun 2023 16:29:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0BEA0863D7; Thu, 1 Jun 2023 18:25:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="RmzmX9L7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9856986394; Thu, 1 Jun 2023 18:25:10 +0200 (CEST) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 213EE86373 for ; Thu, 1 Jun 2023 18:25:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-33aa60f4094so4105225ab.1 for ; Thu, 01 Jun 2023 09:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1685636682; x=1688228682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZQsQRJXc80rjyHJppL4ET2leFcrhYRG9i31CWh5UjrQ=; b=RmzmX9L7dYVg1VlwQD6hUaj/mSaXV9u0mjMyBMJeHo06YJFJ0fHbs1W6KArda57mR5 COVnQRgt6ZM6/JmcYdQwtkDNuPSfrZjHQir+OqMRYMpe0/mI7DlLwP6hBaXbPTIT+lbL evc1Y/gY15g0HQDSNCBoP+ylXBLtUf2AlAxxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685636682; x=1688228682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZQsQRJXc80rjyHJppL4ET2leFcrhYRG9i31CWh5UjrQ=; b=EoZmJ54yyf05NemXrjgPiXgYI6f6YEkufk6UcRWE32bssosSbu+h0ZI6xZXuJ98AFl OWFPB1qJa9HAmTcAetdqmBWC3zyv1myjdLU1re+bXKhVzOJPTZpGMiBGvtqpsB5qi58C u1KEcb/Tr1kdg4bhx2MzGKqFT7ZNiqEDbGym8htZEhh8FoF1IY0YoudFGwJv6vvXC2rF w4faGAPgb5gUymZTHIm8XDj13hFp6rBugORzCj4LDXNeKudUaYOtsZ0N3cMy2ClbHPAp Yt3ZevFxp1NSUuWEmqSE12/rc8eT9cplaE3obh+5JVR71V/D0sXFBLfOFUbyAhnNWAsB xk9A== X-Gm-Message-State: AC+VfDxQ7kE4jOv2zAlBzMN16fi7l3FIOnrmUhXjd5+RjJ1lcnW+TlUP THEGC9JJo6KwqE3pzc2+Q3vHI1jzuPcDrtx8HQU= X-Google-Smtp-Source: ACHHUZ47fWbP0yKI4OZgqJNOQL0OWKvV3oyvux8S4hRKy0ifRrKqtwO3Y7gE7L2mCNvzuy/MiSic1A== X-Received: by 2002:a92:d441:0:b0:330:dc10:9c01 with SMTP id r1-20020a92d441000000b00330dc109c01mr2553265ilm.11.1685636682488; Thu, 01 Jun 2023 09:24:42 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id l1-20020a922901000000b0033a6e7ee4e3sm3862098ilg.1.2023.06.01.09.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 09:24:42 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Tom Rini , Simon Glass Subject: [PATCH 19/40] bootstd: Add a separate log category for expo Date: Thu, 1 Jun 2023 10:22:43 -0600 Message-ID: <20230601162404.220488-18-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog In-Reply-To: <20230601162404.220488-1-sjg@chromium.org> References: <20230601162404.220488-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This feature is different enough from bootstd that it probably deserves its own log category. It cannot use a uclass since it is not a device. Add a new category. Signed-off-by: Simon Glass --- boot/expo.c | 2 ++ boot/scene.c | 2 ++ boot/scene_menu.c | 2 +- common/log.c | 1 + include/log.h | 2 ++ 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/expo.c b/boot/expo.c index e7c81a3983d3..8b966b6c793c 100644 --- a/boot/expo.c +++ b/boot/expo.c @@ -6,6 +6,8 @@ * Written by Simon Glass */ +#define LOG_CATEGORY LOGC_EXPO + #include #include #include diff --git a/boot/scene.c b/boot/scene.c index 1383be20321f..43c978e6ee80 100644 --- a/boot/scene.c +++ b/boot/scene.c @@ -6,6 +6,8 @@ * Written by Simon Glass */ +#define LOG_CATEGORY LOGC_EXPO + #include #include #include diff --git a/boot/scene_menu.c b/boot/scene_menu.c index 9ee911f2fa38..8b04d4403139 100644 --- a/boot/scene_menu.c +++ b/boot/scene_menu.c @@ -6,7 +6,7 @@ * Written by Simon Glass */ -#define LOG_CATEGORY LOGC_BOOT +#define LOG_CATEGORY LOGC_EXPO #include #include diff --git a/common/log.c b/common/log.c index 7cfc49bc28a5..6f02a25c5931 100644 --- a/common/log.c +++ b/common/log.c @@ -31,6 +31,7 @@ static const char *const log_cat_name[] = { "boot", "event", "fs", + "expo", }; _Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE, diff --git a/include/log.h b/include/log.h index 3bab40b61715..6e84f080ef3d 100644 --- a/include/log.h +++ b/include/log.h @@ -102,6 +102,8 @@ enum log_category_t { LOGC_EVENT, /** @LOGC_FS: Related to filesystems */ LOGC_FS, + /** @LOGC_EXPO: Related to expo handling */ + LOGC_EXPO, /** @LOGC_COUNT: Number of log categories */ LOGC_COUNT, /** @LOGC_END: Sentinel value for lists of log categories */ -- 2.41.0.rc0.172.g3f132b7071-goog