diff options
author | Christian König <chrissi@zweiundvierzig.(none)> | 2010-07-11 13:45:18 +0200 |
---|---|---|
committer | Christian König <chrissi@zweiundvierzig.(none)> | 2010-07-11 13:45:18 +0200 |
commit | 18180f963b3c19a821db6a0dece26fbee791431d (patch) | |
tree | 7f3de77dea958de6b69ddc0638d7cb41c2a14b6d | |
parent | 88c7f9c427279ef8ab395e47f17b14e31e3f17b9 (diff) |
Some bugfixing to the dumper
-rw-r--r-- | lib/dumper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dumper.c b/lib/dumper.c index 11e7487..f21a12e 100644 --- a/lib/dumper.c +++ b/lib/dumper.c @@ -215,7 +215,7 @@ static void Tuner_Device_Info(FILE* stream, struct CEC_Tuner_Device_Info* tuner_ static void Vendor_ID(FILE* stream, uint8_t* vendor_id) { - fprintf(stderr, " vendor id: 0x%X%X%X", vendor_id[0], vendor_id[1], vendor_id[2]); + fprintf(stderr, " vendor id: 0x%02X%02X%02X", vendor_id[0], vendor_id[1], vendor_id[2]); } static void Hex_Dump(FILE* stream, uint8_t* data, int length) @@ -223,7 +223,7 @@ static void Hex_Dump(FILE* stream, uint8_t* data, int length) int i; fprintf(stderr, " data:"); for(i=0;i<length;i++) { - fprintf(stderr, " 0x%X", data[i]); + fprintf(stderr, " 0x%02X", data[i]); } } |