Add to the debug output the offset from the parent partitioning scheme.

This commit is contained in:
ae 2012-08-06 08:39:29 +00:00
parent 6a00afffea
commit 798113957d

View File

@ -54,8 +54,8 @@ diskread(void *arg, void *buf, size_t blocks, off_t offset)
struct disk *dp;
dp = (struct disk *)arg;
printf("%s: read %d blocks from the offset %jd\n", dp->name,
blocks, offset);
printf("%s: read %d blocks from the offset %jd [+%jd]\n", dp->name,
blocks, offset, dp->offset);
if (offset >= dp->mediasize / dp->sectorsize)
return (-1);