Only produce hex dumps of information fields

This commit is contained in:
XANTRONIX Development 2020-05-31 00:43:17 -04:00 committed by XANTRONIX Industrial
parent bbbe7f8bfd
commit f113eb4e8a

View file

@ -130,9 +130,11 @@ static int frame_fprint(FILE *stream,
goto error_io;
}
if (hexdump_fprint(stream, data, len) < 0) {
if (frame->info) {
if (hexdump_fprint(stream, frame->info, frame->len) < 0) {
goto error_io;
}
}
return 0;