From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Sat, 10 Oct 2020 15:43:28 -0400 Subject: [PATCH v2 03/22] log: Add additional const qualifier to arrays In-Reply-To: <20201010194347.90096-1-seanga2@gmail.com> References: <20201010194347.90096-1-seanga2@gmail.com> Message-ID: <20201010194347.90096-4-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Both these arrays and their members are const. Fixes checkpatch complaint. Signed-off-by: Sean Anderson --- Changes in v2: - New common/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/log.c b/common/log.c index 3f6f4bdc2a..bda5139b69 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", @@ -23,7 +23,7 @@ static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = { "efi", }; -static const char *log_level_name[LOGL_COUNT] = { +static const char *const log_level_name[LOGL_COUNT] = { "EMERG", "ALERT", "CRIT", -- 2.28.0