Remove \n at the end of err(3) strings
This commit is contained in:
parent
a9357c744c
commit
e3ec673e97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140351
@ -46,10 +46,8 @@ Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\
|
|||||||
All rights reserved.\n";
|
All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#include <sys/cdefs.h>
|
||||||
static const char rcsid[] =
|
__FBSDID("$FreeBSD$");
|
||||||
"$FreeBSD$";
|
|
||||||
#endif /* not lint */
|
|
||||||
|
|
||||||
/* ********************************************************** INCLUDES ***** */
|
/* ********************************************************** INCLUDES ***** */
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -1558,7 +1556,7 @@ rdfs(ufs2_daddr_t bno, size_t size, void *bf, int fsi)
|
|||||||
DBG_ENTER;
|
DBG_ENTER;
|
||||||
|
|
||||||
if (bno < 0) {
|
if (bno < 0) {
|
||||||
err(32, "rdfs: attempting to read negative block number\n");
|
err(32, "rdfs: attempting to read negative block number");
|
||||||
}
|
}
|
||||||
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
|
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
|
||||||
err(33, "rdfs: seek error: %jd", (intmax_t)bno);
|
err(33, "rdfs: seek error: %jd", (intmax_t)bno);
|
||||||
@ -2131,7 +2129,7 @@ main(int argc, char **argv)
|
|||||||
sblock.fs_size = dbtofsb(&osblock, p_size);
|
sblock.fs_size = dbtofsb(&osblock, p_size);
|
||||||
if (size != 0) {
|
if (size != 0) {
|
||||||
if (size > p_size){
|
if (size > p_size){
|
||||||
errx(1, "There is not enough space (%d < %d)",
|
errx(1, "there is not enough space (%d < %d)",
|
||||||
p_size, size);
|
p_size, size);
|
||||||
}
|
}
|
||||||
sblock.fs_size = dbtofsb(&osblock, size);
|
sblock.fs_size = dbtofsb(&osblock, size);
|
||||||
@ -2155,7 +2153,7 @@ main(int argc, char **argv)
|
|||||||
if(sblock.fs_snapinum[j]) {
|
if(sblock.fs_snapinum[j]) {
|
||||||
errx(1, "active snapshot found in file system\n"
|
errx(1, "active snapshot found in file system\n"
|
||||||
" please remove all snapshots before "
|
" please remove all snapshots before "
|
||||||
"using growfs\n");
|
"using growfs");
|
||||||
}
|
}
|
||||||
if(!sblock.fs_snapinum[j]) { /* list is dense */
|
if(!sblock.fs_snapinum[j]) { /* list is dense */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user