Fix some printf format errors.
Submitted by: Don Lewis <dl-freebsd@catspoiler.org>
This commit is contained in:
parent
897ad22f04
commit
325167c3a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99530
@ -204,7 +204,7 @@ tperror(int signo __unused)
|
|||||||
quit("Cannot recover\n");
|
quit("Cannot recover\n");
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
}
|
}
|
||||||
msg("write error %d blocks into volume %d\n", blocksthisvol, tapeno);
|
msg("write error %ld blocks into volume %d\n", blocksthisvol, tapeno);
|
||||||
broadcast("DUMP WRITE ERROR!\n");
|
broadcast("DUMP WRITE ERROR!\n");
|
||||||
if (!query("Do you want to restart?"))
|
if (!query("Do you want to restart?"))
|
||||||
dumpabort(0);
|
dumpabort(0);
|
||||||
|
@ -705,13 +705,13 @@ bread(ufs2_daddr_t blkno, char *buf, int size)
|
|||||||
goto loop;
|
goto loop;
|
||||||
}
|
}
|
||||||
if (cnt == -1)
|
if (cnt == -1)
|
||||||
msg("read error from %s: %s: [block %d]: count=%d\n",
|
msg("read error from %s: %s: [block %qd]: count=%d\n",
|
||||||
disk, strerror(errno), blkno, size);
|
disk, strerror(errno), blkno, size);
|
||||||
else
|
else
|
||||||
msg("short read error from %s: [block %d]: count=%d, got=%d\n",
|
msg("short read error from %s: [block %qd]: count=%d, got=%d\n",
|
||||||
disk, blkno, size, cnt);
|
disk, blkno, size, cnt);
|
||||||
if (++breaderrors > BREADEMAX) {
|
if (++breaderrors > BREADEMAX) {
|
||||||
msg("More than %d block read errors from %d\n",
|
msg("More than %d block read errors from %s\n",
|
||||||
BREADEMAX, disk);
|
BREADEMAX, disk);
|
||||||
broadcast("DUMP IS AILING!\n");
|
broadcast("DUMP IS AILING!\n");
|
||||||
msg("This is an unrecoverable error.\n");
|
msg("This is an unrecoverable error.\n");
|
||||||
@ -730,11 +730,11 @@ bread(ufs2_daddr_t blkno, char *buf, int size)
|
|||||||
((off_t)blkno << dev_bshift))) == dev_bsize)
|
((off_t)blkno << dev_bshift))) == dev_bsize)
|
||||||
continue;
|
continue;
|
||||||
if (cnt == -1) {
|
if (cnt == -1) {
|
||||||
msg("read error from %s: %s: [sector %d]: count=%d\n",
|
msg("read error from %s: %s: [sector %qd]: count=%d\n",
|
||||||
disk, strerror(errno), blkno, dev_bsize);
|
disk, strerror(errno), blkno, dev_bsize);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
msg("short read error from %s: [sector %d]: count=%d, got=%d\n",
|
msg("short read error from %s: [sector %qd]: count=%d, got=%d\n",
|
||||||
disk, blkno, dev_bsize, cnt);
|
disk, blkno, dev_bsize, cnt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user