aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/lchan_fsm.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-05-21 15:42:28 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-05-21 15:43:30 +0200
commit18fd3ee4d2834446565a5a7ad9dfe321df1f03eb (patch)
tree8d875f19088fdd786f0ceb19ddb3d4ddf903fd4b /include/osmocom/bsc/lchan_fsm.h
parentd60b21cc6b3fd43897e97789423a94095dda0f18 (diff)
add missing arg braces in LOG_LCHAN macro
Diffstat (limited to 'include/osmocom/bsc/lchan_fsm.h')
-rw-r--r--include/osmocom/bsc/lchan_fsm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/bsc/lchan_fsm.h b/include/osmocom/bsc/lchan_fsm.h
index 2d5307a23..99964a417 100644
--- a/include/osmocom/bsc/lchan_fsm.h
+++ b/include/osmocom/bsc/lchan_fsm.h
@@ -6,8 +6,8 @@
/* This macro automatically includes a final \n, if omitted. */
#define LOG_LCHAN(lchan, level, fmt, args...) do { \
- if (lchan->fi) \
- LOGPFSML(lchan->fi, level, "(type=%s) " fmt, gsm_lchant_name(lchan->type), ## args); \
+ if ((lchan)->fi) \
+ LOGPFSML((lchan)->fi, level, "(type=%s) " fmt, gsm_lchant_name((lchan)->type), ## args); \
else \
LOGP(DRSL, level, "%s (not initialized) " fmt, gsm_lchan_name(lchan), ## args); \
} while(0)