diff options
author | Paul Kocialkowski | 2016-02-03 21:10:43 +0100 |
---|---|---|
committer | Paul Kocialkowski | 2016-02-03 21:10:43 +0100 |
commit | bd4ff5c3ee98dad99f0ebd41aa196a354de54487 (patch) | |
tree | 128cd3d0c6271ca4cc642668673249ddfbd21283 /src/gpt.c | |
parent | 9cec410c73244e8ac6fea2c10c30825ccf6a73b8 (diff) |
Better information messages
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'src/gpt.c')
-rw-r--r-- | src/gpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -243,7 +243,8 @@ int gpt_partition_find(struct context *context) printf("Found GPT partition: %s\n", name); if (strcmp(name, context->partition) == 0) { - printf("Matched GPT partition: %s\n", name); + if (context->verbose) + printf("Matched GPT partition: %s\n", name); context->address = (uint32_t) le64toh(partition->first_lba); context->length = (uint32_t) (le64toh(partition->last_lba) - le64toh(partition->first_lba) + 1) * GPT_BLOCK_SIZE; |