summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2021-05-02 17:06:20 +0200
committerPali Rohár <pali.rohar@gmail.com>2021-05-02 17:06:20 +0200
commite65d7d1636258dc894b79e62d543b713ac85d3e3 (patch)
tree56d58105fc1c7158e5a5321a49f3257c52ca7328
parent1f466936cb4087869e8b1353ebccfd40ca88596f (diff)
download0xFFFF-e65d7d1636258dc894b79e62d543b713ac85d3e3.tar.bz2
fiasco: Show verbose hexdump information about unknown section
-rw-r--r--src/fiasco.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fiasco.c b/src/fiasco.c
index 1c977c5..bae1ae3 100644
--- a/src/fiasco.c
+++ b/src/fiasco.c
@@ -272,7 +272,11 @@ struct fiasco * fiasco_alloc_from_file(const char * file) {
VERBOSE(" partition name: %s\n", image_part->name);
}
} else {
- VERBOSE("unknown ('%c':%#x)\n", byte, byte);
+ int i;
+ VERBOSE("unknown (%#x)\n", byte);
+ VERBOSE(" hexdump:");
+ for ( i = 0; i < length8; i++ ) VERBOSE(" 0x%02x", buf[i]);
+ VERBOSE("\n");
}
--count8;