changeset 6715:3864d274a56c

(doprnt): Reword confusing error message.
author Karl Heuer <kwzh@gnu.org>
date Thu, 07 Apr 1994 02:46:12 +0000
parents ce9404705b14
children 9ce2d1a2c155
files src/doprnt.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/doprnt.c	Thu Apr 07 02:45:55 1994 +0000
+++ b/src/doprnt.c	Thu Apr 07 02:46:12 1994 +0000
@@ -122,7 +122,7 @@
 	    case 'o':
 	    case 'x':
 	      if (cnt == nargs)
-		error ("Format string wants too many arguments");
+		error ("not enough arguments for format string");
 	      sprintf (sprintf_buffer, fmtcpy, args[cnt++]);
 	      /* Now copy into final output, truncating as nec.  */
 	      string = sprintf_buffer;
@@ -134,7 +134,7 @@
 	      {
 		union { double d; char *half[2]; } u;
 		if (cnt + 1 == nargs)
-		  error ("Format string wants too many arguments");
+		  error ("not enough arguments for format string");
 		u.half[0] = args[cnt++];
 		u.half[1] = args[cnt++];
 		sprintf (sprintf_buffer, fmtcpy, u.d);
@@ -147,7 +147,7 @@
 	      string[-1] = 's';
 	    case 's':
 	      if (cnt == nargs)
-		error ("Format string wants too many arguments");
+		error ("not enough arguments for format string");
 	      string = args[cnt++];
 	      if (fmtcpy[1] != 's')
 		minlen = atoi (&fmtcpy[1]);
@@ -183,7 +183,7 @@
 
 	    case 'c':
 	      if (cnt == nargs)
-		error ("Format string wants too many arguments");
+		error ("not enough arguments for format string");
 	      *bufptr++ = (int) args[cnt++];
 	      bufsize--;
 	      continue;