aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-30 01:55:16 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-03 06:52:37 +0000
commita6050088c5d1180877fda2a96cdace05a3082a25 (patch)
treebd4b8463ca2e08830b64b05ab4daacb3a066a31b
parenteda131260549bd55495f53ab93e979a4f0c10f9f (diff)
abis_nm: cosmetic: use sizeof() for printing buffer size
-rw-r--r--src/osmo-bsc/abis_nm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index a0aead8e3..f60080141 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -571,8 +571,8 @@ static int parse_attr_resp_info_attr(struct gsm_bts *bts, const struct gsm_bts_t
/* log potential BTS feature vector overflow */
if (len > sizeof(bts->_features_data)) {
- LOGP(DNM, LOGL_NOTICE, "BTS%u Get Attributes Response: feature vector is truncated to %u bytes\n",
- bts->nr, MAX_BTS_FEATURES/8);
+ LOGP(DNM, LOGL_NOTICE, "BTS%u Get Attributes Response: feature vector is truncated to %zu bytes\n",
+ bts->nr, sizeof(bts->_features_data));
}
/* check that max. expected BTS attribute is above given feature vector length */