diff options
author | ae <ae@FreeBSD.org> | 2015-07-26 11:16:48 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-07-26 11:16:48 +0000 |
commit | 9407ae01ca4020a4fa13d96cc20a6ab7ff913a88 (patch) | |
tree | e6baf551c548d2a6f6bc8007333b6c0f060143b3 /sys/geom | |
parent | bac84ac2ac07b7d4bd7965bff3c3aec6993e8b1a (diff) | |
download | FreeBSD-src-9407ae01ca4020a4fa13d96cc20a6ab7ff913a88.zip FreeBSD-src-9407ae01ca4020a4fa13d96cc20a6ab7ff913a88.tar.gz |
Report the scheme and provider names in warning message about unaligned
partition.
PR: 201873
MFC after: 1 week
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 680aabd..52a554d 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 */ } } |