diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-05-30 01:55:16 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-03 06:52:37 +0000 |
commit | a6050088c5d1180877fda2a96cdace05a3082a25 (patch) | |
tree | bd4b8463ca2e08830b64b05ab4daacb3a066a31b | |
parent | eda131260549bd55495f53ab93e979a4f0c10f9f (diff) |
abis_nm: cosmetic: use sizeof() for printing buffer size
Change-Id: I14be343578a64c1e4ce8ce4d28da9008eb309f3c
-rw-r--r-- | src/osmo-bsc/abis_nm.c | 4 |
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 */ |