From da6c24e123811d0c0db790f2e815cda57d7f8578 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Sun, 26 Jul 2015 11:16:48 +0000 Subject: [PATCH] Report the scheme and provider names in warning message about unaligned partition. PR: 201873 MFC after: 1 week --- sys/geom/part/g_part.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 680aabd3ac26..52a554d125ce 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -322,8 +322,10 @@ g_part_check_integrity(struct g_part_table *table, struct g_consumer *cp) if (e1->gpe_offset > offset) offset = e1->gpe_offset; if ((offset + pp->stripeoffset) % pp->stripesize) { - DPRINTF("partition %d is not aligned on %u " - "bytes\n", e1->gpe_index, pp->stripesize); + DPRINTF("partition %d on (%s, %s) is not " + "aligned on %u bytes\n", e1->gpe_index, + pp->name, table->gpt_scheme->name, + pp->stripesize); /* Don't treat this as a critical failure */ } }