summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-08-02 16:25:21 +0000
committerae <ae@FreeBSD.org>2015-08-02 16:25:21 +0000
commitb77ef6b082c86ee78d1a404c618bf0353bc001a8 (patch)
tree0847898d1a8043930f3e3f2b5783f9fca51f0197 /sys/geom
parent75c063e8b8ed27522de533ba24a98e50a29617e6 (diff)
downloadFreeBSD-src-b77ef6b082c86ee78d1a404c618bf0353bc001a8.zip
FreeBSD-src-b77ef6b082c86ee78d1a404c618bf0353bc001a8.tar.gz
MFC r285889:
Report the scheme and provider names in warning message about unaligned partition. PR: 201873
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/part/g_part.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c
index c64d98a..44f135e 100644
--- a/sys/geom/part/g_part.c
+++ b/sys/geom/part/g_part.c
@@ -321,8 +321,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 */
}
}
OpenPOWER on IntegriCloud