mitsud90: Tweak the output of the dumpall coammand:

* Fixed-width field dump (ie '%02x' instead of '%x')
 * Strip out common header
This commit is contained in:
Solomon Peachy 2019-12-22 22:39:38 -05:00
parent cfefb35bc2
commit 3e1a536058
1 changed files with 3 additions and 3 deletions

View File

@ -1080,10 +1080,10 @@ static int mitsud90_dumpall(struct mitsud90_ctx *ctx)
continue;
if (num > 4) {
DEBUG("TYPE %02x LEN: %d (%d)\n", i, num, num - 4);
DEBUG("TYPE %02x LEN: %d\n", i, num - 4);
DEBUG("<--");
for (ret = 0; ret < num ; ret ++) {
DEBUG2(" %x", buf[ret]);
for (ret = 4; ret < num ; ret ++) {
DEBUG2(" %02x", buf[ret]);
}
DEBUG2("\n");
}