Report the scheme and provider names in warning message about unaligned

partition.

PR:		201873
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2015-07-26 11:16:48 +00:00
parent 41f5f69f96
commit da6c24e123
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285889

View File

@ -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 */
}
}