From c79636c277bb1672903667176fdb1db9c05f42e4 Mon Sep 17 00:00:00 2001 From: mav Date: Thu, 25 Oct 2012 15:45:32 +0000 Subject: [PATCH] Remove new-line characters from the include() errors to make it consistent with the rest of code. --- sys/boot/common/interp.c | 4 ++-- 1 file 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);