libdvbv5/descriptors: print descriptor number in hexadecimal
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 15 Nov 2013 12:42:20 +0000 (10:42 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 27 Nov 2013 11:24:16 +0000 (09:24 -0200)
Descriptors are tabled in hexadecimal. Put them in this format,
to make easier to compare with DTV and MPEG tables.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/descriptors.c

index 9790348..b16a65d 100644 (file)
@@ -65,7 +65,7 @@ void dvb_desc_default_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, st
 
 void dvb_desc_default_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
 {
-       dvb_log("|                   %s (%d)", dvb_descriptors[desc->type].name, desc->type);
+       dvb_log("|                   %s (0x%02x)", dvb_descriptors[desc->type].name, desc->type);
        hexdump(parms, "|                       ", desc->data, desc->length);
 }