| 1 |
From: Ahmad Khalifa <[email protected]> |
| 2 |
Date: Sat, 06 Sep 2025 13:50:12 +0000 |
| 3 |
Forwarded: not-needed |
| 4 |
Subject: fix gcc warning strin no null terminator |
| 5 |
|
| 6 |
--- a/src/commonlib/include/commonlib/loglevel.h |
| 7 |
+++ b/src/commonlib/include/commonlib/loglevel.h |
| 8 |
@@ -165,7 +165,7 @@ |
| 9 |
*/ |
| 10 |
#define BIOS_LOG_PREFIX_PATTERN "[%.5s] " |
| 11 |
#define BIOS_LOG_PREFIX_MAX_LEVEL BIOS_SPEW |
| 12 |
|
| 13 |
+static const char __nonstring bios_log_prefix[BIOS_LOG_PREFIX_MAX_LEVEL + 1][6] = { |
| 14 |
/* Note: These strings are *not* null-terminated to save space. */ |
| 15 |
[BIOS_EMERG] = "EMERG", |
| 16 |
[BIOS_ALERT] = "ALERT", |