implement %u for printing bytes sent/received
authorPaul Mackerras <paulus@samba.org>
Fri, 16 Mar 2001 02:08:13 +0000 (02:08 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 16 Mar 2001 02:08:13 +0000 (02:08 +0000)
pppd/utils.c

index e873ed65244f6fd2a55f80f2166edb0189dd604c..f305ea339903501ee95a36aa57f70ea1ed8af874 100644 (file)
@@ -17,7 +17,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define RCSID  "$Id: utils.c,v 1.12 2001/03/12 22:56:45 paulus Exp $"
+#define RCSID  "$Id: utils.c,v 1.13 2001/03/16 02:08:13 paulus Exp $"
 
 #include <stdio.h>
 #include <ctype.h>
@@ -215,6 +215,10 @@ vslprintf(buf, buflen, fmt, args)
                val = i;
            base = 10;
            break;
+       case 'u':
+           val = va_arg(args, unsigned int);
+           base = 10;
+           break;
        case 'o':
            val = va_arg(args, unsigned int);
            base = 8;