aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-15 19:21:23 +0100
committerMax <msuraev@sysmocom.de>2016-11-16 09:29:23 +0000
commit9b4d065ba5b75d564845d6aeef6596ce5768b2a3 (patch)
tree54fdfa3bab29342906e67e02ab78503834d04172 /src
parent55363a9f621566d82fc30408a6c657d9e81f5789 (diff)
Extend IPA error logging
Output more information in case of IPA protocol errors to make debugging easier. Change-Id: I7632d6e679e076bfbec9abc12da4a46cc27ccea1 Related: SYS#3028
Diffstat (limited to 'src')
-rw-r--r--src/gsm/ipa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c
index 05e8967d..f44c3284 100644
--- a/src/gsm/ipa.c
+++ b/src/gsm/ipa.c
@@ -108,12 +108,12 @@ int ipa_ccm_idtag_parse_off(struct tlv_parsed *dec, unsigned char *buf, int len,
t_tag = *cur++;
if (t_len < len_offset) {
- LOGP(DLMI, LOGL_ERROR, "minimal offset not included: %d\n", t_len);
+ LOGP(DLMI, LOGL_ERROR, "minimal offset not included: %d < %d\n", t_len, len_offset);
return -EINVAL;
}
if (t_len > len + 1) {
- LOGP(DLMI, LOGL_ERROR, "The tag does not fit: %d\n", t_len);
+ LOGP(DLMI, LOGL_ERROR, "The tag does not fit: %d > %d\n", t_len, len + 1);
return -EINVAL;
}