aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpt.c')
-rw-r--r--src/gpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpt.c b/src/gpt.c
index 2a2b7d3..aa607b4 100644
--- a/src/gpt.c
+++ b/src/gpt.c
@@ -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;