Commit 87efd715 authored by Mike Hibler's avatar Mike Hibler
Browse files

Print header info during report.

parent f551802e
......@@ -465,6 +465,20 @@ dumphash(char *name, struct hashinfo *hinfo, int withchunk)
haschunkrange = 1;
if (detail > 1) {
switch (hinfo->version) {
case HASH_VERSION_1:
printf("sig version 1, blksize=%d sectors:\n",
bytestosec(HASHBLK_SIZE));
break;
case HASH_VERSION_2:
printf("sig version 2, blksize=%d sectors:\n",
hinfo->blksize);
break;
default:
printf("unknown signature version (%x), "
"expect garbage:\n", hinfo->version);
break;
}
for (i = 0; i < hinfo->nregions; i++) {
reg = &hinfo->regions[i];
printf("[%u-%u] (%d): ",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment