svn commit: r242084 - head/sys/boot/common
Alexander Motin
mav at FreeBSD.org
Thu Oct 25 15:45:33 UTC 2012
Author: mav
Date: Thu Oct 25 15:45:32 2012
New Revision: 242084
URL: http://svn.freebsd.org/changeset/base/242084
Log:
Remove new-line characters from the include() errors to make it consistent
with the rest of code.
Modified:
head/sys/boot/common/interp.c
Modified: head/sys/boot/common/interp.c
==============================================================================
--- head/sys/boot/common/interp.c Thu Oct 25 15:25:17 2012 (r242083)
+++ head/sys/boot/common/interp.c Thu Oct 25 15:45:32 2012 (r242084)
@@ -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);
More information about the svn-src-all
mailing list