patch-2.2.4 linux/lib/vsprintf.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Mar 15 11:19:05 1999
- Orig file:
v2.2.3/linux/lib/vsprintf.c
- Orig date:
Thu Nov 19 09:56:29 1998
diff -u --recursive --new-file v2.2.3/linux/lib/vsprintf.c linux/lib/vsprintf.c
@@ -261,6 +261,10 @@
}
continue;
+ case '%':
+ *str++ = '%';
+ continue;
+
/* integer number formats - set up the flags and "break" */
case 'o':
base = 8;
@@ -279,8 +283,7 @@
break;
default:
- if (*fmt != '%')
- *str++ = '%';
+ *str++ = '%';
if (*fmt)
*str++ = *fmt;
else
@@ -313,4 +316,3 @@
va_end(args);
return i;
}
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)