Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
87efd715
Commit
87efd715
authored
Jul 03, 2014
by
Mike Hibler
Browse files
Print header info during report.
parent
f551802e
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/imagezip/imagehash.c
View file @
87efd715
...
...
@@ -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): "
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment