From patchwork Mon Sep 28 00:46:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1372207 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=LaJkY+uA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C03kN3tX6z9sTC for ; Mon, 28 Sep 2020 10:46:52 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C22D8235C; Mon, 28 Sep 2020 02:46:39 +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="LaJkY+uA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 010538234E; Mon, 28 Sep 2020 02:46:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) (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 2432382332 for ; Mon, 28 Sep 2020 02:46:32 +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-oo1-xc2c.google.com with SMTP id o20so2206929ook.1 for ; Sun, 27 Sep 2020 17:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uyeHfoFn8iwq5EZryYxJHs4+q/44GTKYCZeqQMfp4lw=; b=LaJkY+uA3sFaHM3KKmsJ2XGTelAmW5udA175GuvV4Dx29iYIsuaYqtWBuq4rvEpF51 2hn0gejfoXyJC0bvS+DSPaPE5jVIbheMBJszYOeMjKOatVB5dM2CLxnSesy61tSotIcj JLpI6KpmaXO4eLsbcsz6bxkzPS29MuQFQb2Ug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uyeHfoFn8iwq5EZryYxJHs4+q/44GTKYCZeqQMfp4lw=; b=GF24xbHF67z9x4/kyfZFgjO4Dq1l62mvxi+zN+aemMsZZl/t5ZTgYX/NJG0F24SKhl V7/PweNsaaRkPDsOZ2VHhuZ8kPQZ1qAeORd+tQK381ISmmbMj64tMKjIG8PqveGf7Dst JJho4h5hi8xECvkVmgTpccCf3Yn4spRyg4TvYzMGfGtjpqNaJHUPBPgNt+kEAD0z7OPc hVAj1mwgSW/j2wR5hvHnko+BdM2GY/s02rTC1+9xeNQDiJUasiI8Kx6dhTxGs5N+eRLZ Mqxkzzby1H0dISpgFGoVpygKsSIqvuuA3UjP0GyMeQeoPJU3edSy0d5ZIgX37RqQpIRT oj0w== X-Gm-Message-State: AOAM53267lfNJUfisLHTujQEJpJRTFwFX6Xqa2MDVa318eKeX0nmzCQF owgZDpzG/+O6Hf8yhNgG5qoaG50+QMX7ivPQ X-Google-Smtp-Source: ABdhPJy+lKu9MSmL/xbf522nU6v5gCg0EZl5pIkD10mdgb/RIm7wM85GwJR5zQJ6VvzA0d4YwP8p5Q== X-Received: by 2002:a4a:9b01:: with SMTP id a1mr7785628ook.51.1601253990773; Sun, 27 Sep 2020 17:46:30 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id t7sm1790995ooq.0.2020.09.27.17.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 17:46:30 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Andy Shevchenko , Bin Meng , Heinrich Schuchardt , Sean Anderson Subject: [PATCH 01/12] log: Add missing category names Date: Sun, 27 Sep 2020 18:46:13 -0600 Message-Id: <20200928004624.1652803-2-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200928004624.1652803-1-sjg@chromium.org> References: <20200928004624.1652803-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Add some category names that were missed in recent changes. Update the comment as a reminder. Signed-off-by: Simon Glass --- common/log.c | 5 +++++ include/log.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/log.c b/common/log.c index 9a5f100da34..38336d84e3c 100644 --- a/common/log.c +++ b/common/log.c @@ -21,6 +21,11 @@ static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = { "driver-model", "device-tree", "efi", + "alloc", + "sandbox", + "bloblist", + "devres", + "acpi", }; static const char *log_level_name[LOGL_COUNT] = { diff --git a/include/log.h b/include/log.h index 2859ce1f2e7..00885004a36 100644 --- a/include/log.h +++ b/include/log.h @@ -39,7 +39,9 @@ enum log_level_t { /** * Log categories supported. Most of these correspond to uclasses (i.e. - * enum uclass_id) but there are also some more generic categories + * enum uclass_id) but there are also some more generic categories. + * + * Remember to update log_cat_name[] after adding a new category. */ enum log_category_t { LOGC_FIRST = 0, /* First part mirrors UCLASS_... */