summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-12-22 22:39:38 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-12-22 22:39:38 -0500
commit47650a966276b3d26f85a8cd6c2597eb9dcbc343 (patch)
treeb4c20bbc562e72b79614c10d5bf9e2f7a98f1c08
parent917d3023ead46a40aee795634714a51e350ee67a (diff)
downloadselphy_print-47650a966276b3d26f85a8cd6c2597eb9dcbc343.tar.gz
selphy_print-47650a966276b3d26f85a8cd6c2597eb9dcbc343.tar.bz2
selphy_print-47650a966276b3d26f85a8cd6c2597eb9dcbc343.zip
mitsud90: Tweak the output of the dumpall coammand:
* Fixed-width field dump (ie '%02x' instead of '%x') * Strip out common header
-rw-r--r--backend_mitsud90.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend_mitsud90.c b/backend_mitsud90.c
index 6530a56..abafe31 100644
--- a/backend_mitsud90.c
+++ b/backend_mitsud90.c
@@ -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");
}