aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2012-10-25 15:45:32 +0000
committerAlexander Motin <mav@FreeBSD.org>2012-10-25 15:45:32 +0000
commit572dc5cfc5c69760be3cdb719fc4a8b9f9e9e130 (patch)
tree957f1fb35fb87c78e7969859b9423ca0c67eafc9 /sys
parenta971b547602cccf31dac7f5400b88fba2c03abbe (diff)
downloadsrc-572dc5cfc5c69760be3cdb719fc4a8b9f9e9e130.tar.gz
src-572dc5cfc5c69760be3cdb719fc4a8b9f9e9e130.zip
Remove new-line characters from the include() errors to make it consistent
with the rest of code.
Notes
Notes: svn path=/head/; revision=242084
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/interp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/interp.c b/sys/boot/common/interp.c
index de4bd9ab9d4e..61251ba226d8 100644
--- a/sys/boot/common/interp.c
+++ b/sys/boot/common/interp.c
@@ -211,7 +211,7 @@ include(const char *filename)
#endif
if (((fd = open(filename, O_RDONLY)) == -1)) {
- sprintf(command_errbuf,"can't open '%s': %s\n", filename, strerror(errno));
+ sprintf(command_errbuf,"can't open '%s': %s", filename, strerror(errno));
return(CMD_ERROR);
}
@@ -254,7 +254,7 @@ include(const char *filename)
free(se);
}
sprintf(command_errbuf, "file '%s' line %d: memory allocation "
- "failure - aborting\n", filename, line);
+ "failure - aborting", filename, line);
return (CMD_ERROR);
}
strcpy(sp->text, cp);