Improved English in the messages printed by diskerr().
Fixed some formatting bugs.
This commit is contained in:
parent
64cda4e365
commit
9fec7300da
@ -186,7 +186,7 @@ dsinit(dev, lp, sspp)
|
||||
bp->b_flags |= B_READ;
|
||||
BUF_STRATEGY(bp, 1);
|
||||
if (biowait(bp) != 0) {
|
||||
diskerr(bp, "error reading primary partition table",
|
||||
diskerr(bp, "reading primary partition table: error",
|
||||
LOG_PRINTF, 0, (struct disklabel *)NULL);
|
||||
printf("\n");
|
||||
error = EIO;
|
||||
@ -195,8 +195,7 @@ dsinit(dev, lp, sspp)
|
||||
|
||||
/* Weakly verify it. */
|
||||
cp = bp->b_data;
|
||||
sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
|
||||
partname);
|
||||
sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART, partname);
|
||||
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
|
||||
if (bootverbose)
|
||||
printf("%s: invalid primary partition table: no magic\n",
|
||||
@ -384,7 +383,7 @@ mbr_extended(dev, lp, ssp, ext_offset, ext_size, base_ext_offset, nsectors,
|
||||
bp->b_flags |= B_READ;
|
||||
BUF_STRATEGY(bp, 1);
|
||||
if (biowait(bp) != 0) {
|
||||
diskerr(bp, "error reading extended partition table",
|
||||
diskerr(bp, "reading extended partition table: error",
|
||||
LOG_PRINTF, 0, (struct disklabel *)NULL);
|
||||
printf("\n");
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user