summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c2
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);