summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-10-25 15:45:32 +0000
committermav <mav@FreeBSD.org>2012-10-25 15:45:32 +0000
commitc79636c277bb1672903667176fdb1db9c05f42e4 (patch)
tree957f1fb35fb87c78e7969859b9423ca0c67eafc9 /sys/boot/common
parent865c79666360e27ab1d4fdaaded6e40c87464a22 (diff)
downloadFreeBSD-src-c79636c277bb1672903667176fdb1db9c05f42e4.zip
FreeBSD-src-c79636c277bb1672903667176fdb1db9c05f42e4.tar.gz
Remove new-line characters from the include() errors to make it consistent
with the rest of code.
Diffstat (limited to 'sys/boot/common')
-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 de4bd9a..61251ba 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);
OpenPOWER on IntegriCloud