aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-10-27 19:55:22 -0400
committerTom Rini <trini@konsulko.com>2020-10-30 10:55:26 -0400
commit43381401d541c2d3245e4f210f962494b1533914 (patch)
treee5dcd68525f21e7327542c90723ce124bd153a64
parentb66a924f9762bf4d608c6061d5fa2ab79f803e13 (diff)
downloadu-boot-43381401d541c2d3245e4f210f962494b1533914.zip
u-boot-43381401d541c2d3245e4f210f962494b1533914.tar.gz
u-boot-43381401d541c2d3245e4f210f962494b1533914.tar.bz2
log: Add additional const qualifier to arrays
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>
-rw-r--r--common/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/log.c b/common/log.c
index f1de922..47bb9b5 100644
--- a/common/log.c
+++ b/common/log.c
@@ -13,7 +13,7 @@
DECLARE_GLOBAL_DATA_PTR;
-static const char *log_cat_name[] = {
+static const char *const log_cat_name[] = {
"none",
"arch",
"board",
@@ -31,7 +31,7 @@ static const char *log_cat_name[] = {
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
"log_cat_name size");
-static const char *log_level_name[] = {
+static const char *const log_level_name[] = {
"EMERG",
"ALERT",
"CRIT",