diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-05-21 15:42:28 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-05-21 15:43:30 +0200 |
commit | 18fd3ee4d2834446565a5a7ad9dfe321df1f03eb (patch) | |
tree | 8d875f19088fdd786f0ceb19ddb3d4ddf903fd4b | |
parent | d60b21cc6b3fd43897e97789423a94095dda0f18 (diff) |
add missing arg braces in LOG_LCHAN macro
Change-Id: Ifd9f868636fda3298bb19c061d3ef194fd941fc3
-rw-r--r-- | include/osmocom/bsc/lchan_fsm.h | 4 |
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) |