mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-20 02:40:09 +00:00
booster: make-booster: print hash on output
Next time I need to debug the hash, this will come in handy. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
fb08d194ca
commit
4d6746d584
@ -39,7 +39,7 @@ int main(int argc, char **argv)
|
|||||||
int booster_fd = open(BOOSTER_BIN, O_RDONLY);
|
int booster_fd = open(BOOSTER_BIN, O_RDONLY);
|
||||||
if (booster_fd == -1)
|
if (booster_fd == -1)
|
||||||
{
|
{
|
||||||
perror("Unable to open " BOOSTER_BIN " (try running 'make -Iinclude')");
|
perror("Unable to open " BOOSTER_BIN " (try running 'make')");
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
if (-1 == fstat(booster_fd, &stat_buf))
|
if (-1 == fstat(booster_fd, &stat_buf))
|
||||||
@ -126,6 +126,7 @@ int main(int argc, char **argv)
|
|||||||
return 7;
|
return 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("Boosted image written to \"%s\". Calculated hash: 0x%08x\n", outfile_name, booster_data.xxhash);
|
||||||
close(bitstream_fd);
|
close(bitstream_fd);
|
||||||
close(outfile_fd);
|
close(outfile_fd);
|
||||||
close(booster_fd);
|
close(booster_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user