aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-16 12:08:49 +0200
committerpespin <pespin@sysmocom.de>2020-10-17 13:56:16 +0000
commit0aa489252d8fc57cd4a2d8f2a8702252be88abf8 (patch)
treea4430ff544d44f6837fb9fc21919660e5db42399 /include
parent60e5ddf65d50b3e430d29dd9b5cfdaf4d05f3204 (diff)
ipa: Fix use of null pointer in log macro
Fixes: Coverity CID#214962 Fixes: Coverity CID#214963 Change-Id: Iafea915dbbbfbaa710fb5899cb9be5e507ba384c
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/abis_nm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/bsc/abis_nm.h b/include/osmocom/bsc/abis_nm.h
index 3a0cb0e3c..bfafa63ed 100644
--- a/include/osmocom/bsc/abis_nm.h
+++ b/include/osmocom/bsc/abis_nm.h
@@ -178,4 +178,7 @@ int abis_nm_update_max_power_red(struct gsm_bts_trx *trx);
struct gsm_bts_trx_ts *abis_nm_get_ts(const struct msgb *oml_msg);
+#define LOGPFOH(ss, lvl, foh, fmt, args ...) LOGP(ss, lvl, "%s: " fmt, abis_nm_dump_foh(foh), ## args)
+#define DEBUGPFOH(ss, foh, fmt, args ...) LOGPFOH(ss, LOGL_DEBUG, foh, fmt, ## args)
+
#endif /* _NM_H */