mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 07:33:29 +08:00
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>
This commit is contained in:
parent
b66a924f97
commit
43381401d5
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
static const char *log_cat_name[] = {
|
static const char *const log_cat_name[] = {
|
||||||
"none",
|
"none",
|
||||||
"arch",
|
"arch",
|
||||||
"board",
|
"board",
|
||||||
@ -31,7 +31,7 @@ static const char *log_cat_name[] = {
|
|||||||
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
||||||
"log_cat_name size");
|
"log_cat_name size");
|
||||||
|
|
||||||
static const char *log_level_name[] = {
|
static const char *const log_level_name[] = {
|
||||||
"EMERG",
|
"EMERG",
|
||||||
"ALERT",
|
"ALERT",
|
||||||
"CRIT",
|
"CRIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user