Message ID | 20201027235541.706077-4-seanga2@gmail.com |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show
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; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=AvN1W+Ih; dkim-atps=neutral Received: from phobos.denx.de (unknown [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4CLTBh1M9Yz9sV1 for <incoming@patchwork.ozlabs.org>; Wed, 28 Oct 2020 10:56:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C85E6824C4; Wed, 28 Oct 2020 00:56:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AvN1W+Ih"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64E0682430; Wed, 28 Oct 2020 00:56:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) (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 4253A8243D for <u-boot@lists.denx.de>; Wed, 28 Oct 2020 00:56:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x844.google.com with SMTP id c5so2417965qtw.3 for <u-boot@lists.denx.de>; Tue, 27 Oct 2020 16:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HbBcDoltU9OhLqzRAxaDr5W9lxw3mmHUK90TldIcKck=; b=AvN1W+IhZLrurRQ943OrqXPyDnPzM6WeGiWMHNKF5s+i4a065EutfB4EFZe3XL2erH dpLi/Q2g/9m6ZFox7KwMxk9wylzDfn5sdSxJJKDopSefET37UjxmMzKblw5KkICDGQ8M FozSPNNAw+0JFaba2woXGozkgKWY7h4ut93qiIXvgIBRRF6MiDkH2ucr3NPRoWBfb1PK Zz320LjQvmepf3lwLvOVSG9tMO3hA1ZDjyTJRxWnjPx+KWpC4+KPbtl8pxx3AxkHTxdX YcUCtl/PKERUNxfqEQNqGohgVI0wXg0K/6tDZKHfs9maicRl7MQw0l0bWEGJmccTDfED GkQw== 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=HbBcDoltU9OhLqzRAxaDr5W9lxw3mmHUK90TldIcKck=; b=fnbnwvVAD/h4DRpO/VaVL/xzlgeD+mzSU3bc4ugTvFrZppFgOYa4BpSFUMXGW31mK1 iIOsRdpmBERAAbisFbliOvKvllQkoG1TvCkadmFPiYzgMOTBYw2O1UzInZ9IRz31VJG+ CsE8wUmPTOj7wH812N+LwZ3MA5TPQpqFVxsmovAezACSZdupNLuU9gO7P13qHXNsHN4U b05O1e3oaHev3JijWMKzFDIJg2RjAQULjZbQ7iJTf/+1oiGC6TYKSG60cVMjpRWEmtyB gjC6d2ryzEr5xTRfiaTvDywZb6KOdtuQReBxtDLKPXGKXQtLrvRMOSeim2DJYij9sOSa vzLQ== X-Gm-Message-State: AOAM531gqvS2rq50JHR+IY28P96dV5uXTjqkT5exDHFpRBNWD1mxzGf4 ysfQBwJCYnIxWf2npSHeOCokZYtgeE3oPg== X-Google-Smtp-Source: ABdhPJwjL/T3liGQ0ubKXRuWyEVfAxlHmbgmoDv12fPVVUpjBjXVvsBKw04px0IXHdeWprhY2MbNGA== X-Received: by 2002:ac8:4a0a:: with SMTP id x10mr4718989qtq.3.1603842958909; Tue, 27 Oct 2020 16:55:58 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id 69sm1907543qko.48.2020.10.27.16.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 16:55:58 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Sean Anderson <seanga2@gmail.com> Subject: [PATCH v4 03/22] log: Add additional const qualifier to arrays Date: Tue, 27 Oct 2020 19:55:22 -0400 Message-Id: <20201027235541.706077-4-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201027235541.706077-1-seanga2@gmail.com> References: <20201027235541.706077-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://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>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
log: Add commands for manipulating filters
|
expand
|
On Tue, Oct 27, 2020 at 07:55:22PM -0400, Sean Anderson wrote: > Both these arrays and their members are const. Fixes checkpatch complaint. > > Signed-off-by: Sean Anderson <seanga2@gmail.com> > Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
diff --git a/common/log.c b/common/log.c index 6aab189a46..8d5d71ccb4 100644 --- a/common/log.c +++ b/common/log.c @@ -13,7 +13,7 @@ DECLARE_GLOBAL_DATA_PTR; -static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = { +static const char *const log_cat_name[LOGC_COUNT - LOGC_NONE] = { "none", "arch", "board", @@ -28,7 +28,7 @@ static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = { "acpi", }; -static const char *log_level_name[LOGL_COUNT] = { +static const char *const log_level_name[LOGL_COUNT] = { "EMERG", "ALERT", "CRIT",