diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-04-18 18:53:44 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-13 09:31:00 +0000 |
commit | cef0e0ad6fa595d5d6a7b09628b71636c3a20eea (patch) | |
tree | d5826ce36b9f971cb8523585282f885a14a510cf /src/vendorcode/cavium/bdk | |
parent | 4ffce7e8acdcfa55c6fb23ae14c5e2ab7c172c72 (diff) |
vendorcode/cavium: Fix additions to string
The clang compiler is confused about adding integers to strings. Adding
brackets around the macros fixes this.
TEST: BUILD_TIMELESS=1 remains the same.
Change-Id: I2ea17322352d977bf0ec3ee71b14463fa218d07c
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74541
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/cavium/bdk')
-rw-r--r-- | src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c index 18d9081922..ced70fdd70 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c @@ -58,7 +58,7 @@ BDK_REQUIRE_DEFINE(QLM); */ const char *bdk_qlm_mode_to_cfg_str(bdk_qlm_modes_t mode) { -#define MODE_CASE(m) case m: return #m+13 +#define MODE_CASE(m) case (m): return (#m)+13 switch (mode) { MODE_CASE(BDK_QLM_MODE_DISABLED); |