Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 15:45:32 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242084 - head/sys/boot/common
Message-ID:  <201210251545.q9PFjWLJ091170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210251545.q9PFjWLJ091170>