projects
/
ppp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1746d
)
implement %u for printing bytes sent/received
author
Paul Mackerras
<paulus@samba.org>
Fri, 16 Mar 2001 02:08:13 +0000
(
02:08
+0000)
committer
Paul Mackerras
<paulus@samba.org>
Fri, 16 Mar 2001 02:08:13 +0000
(
02:08
+0000)
pppd/utils.c
patch
|
blob
|
history
diff --git
a/pppd/utils.c
b/pppd/utils.c
index e873ed65244f6fd2a55f80f2166edb0189dd604c..f305ea339903501ee95a36aa57f70ea1ed8af874 100644
(file)
--- a/
pppd/utils.c
+++ b/
pppd/utils.c
@@
-17,7
+17,7
@@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define RCSID "$Id: utils.c,v 1.1
2 2001/03/12 22:56:45
paulus Exp $"
+#define RCSID "$Id: utils.c,v 1.1
3 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;