/* ubifs_scanned_corruption - print information after UBIFS scanned corruption.  */
void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf)
/* ubifs_scanned_corruption - print information after UBIFS scanned corruption.  */
void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf)
{
	int len;
	ubifs_err(c, "corruption at LEB %d:%d", lnum, offs);
	len = c->leb_size - offs;
	if (len > 8192)
		len = 8192;
	ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs);
	print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1);
}