diff options
author | Neels Janosch Hofmeyr <nhofmeyr@sysmocom.de> | 2022-12-08 03:25:22 +0100 |
---|---|---|
committer | Neels Janosch Hofmeyr <nhofmeyr@sysmocom.de> | 2022-12-08 04:23:09 +0100 |
commit | bf8e49a1bde4862eda5c32192ffb696b9963d90a (patch) | |
tree | f79d7ac62d39d359346c168cbab9528c41932f54 /tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.ok | |
parent | 43dd5ddf97023552d0f3cd695d73603645414320 (diff) |
gtlv: decoding error: log size limited hexdump of IE
When a decoding error is encountered, log the value part of the root
cause as hexdump, but at most 16 bytes (16*3 chars as hexdump).
Contrived example of the change:
before this patch:
<-tx- PFCP seq-4 ASSOC_SETUP_RESP: 0: Invalid FQDN (-22: Invalid argument)
<-tx- PFCP seq-4 ASSOC_SETUP_RESP: 0: tag 0x3c = Node ID: Error while decoding this IE (-22: Invalid argument)
after this patch:
<-tx- PFCP seq-4 ASSOC_SETUP_RESP: 0: Invalid FQDN (-22: Invalid argument)
<-tx- PFCP seq-4 ASSOC_SETUP_RESP: 0: tag 0x3c = Node ID: Error while decoding this IE. L=20 V=[ 02 07 65 78 61 6d 70 6c 65 03 63 6f 6d 01 02 03 ...] (-22: Invalid argument)
Change-Id: Ie814a117db3dfea32cf3f01cf124a2e472cb869f
Diffstat (limited to 'tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.ok')
0 files changed, 0 insertions, 0 deletions