diff options
author | green <green@FreeBSD.org> | 1999-08-07 20:13:32 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-08-07 20:13:32 +0000 |
commit | 794dc7dbf91fe8aa89ae5e4d55f91c7fc115348f (patch) | |
tree | 75c0bcf63a1ae2b052a59e5d58c027269c556a3a | |
parent | 99e98dba547ae2357450d05786fa9abe6fbf2f5a (diff) | |
download | FreeBSD-src-794dc7dbf91fe8aa89ae5e4d55f91c7fc115348f.zip FreeBSD-src-794dc7dbf91fe8aa89ae5e4d55f91c7fc115348f.tar.gz |
Make long longs ("%ll" format) work.
Reviewed by: msmith
-rw-r--r-- | sys/kern/subr_prf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index d9f0f23..69bd3a8 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.57 1999/07/14 17:37:53 peter Exp $ + * $Id: subr_prf.c,v 1.58 1999/07/24 09:34:12 dfr Exp $ */ #include <sys/param.h> @@ -599,7 +599,11 @@ reswitch: switch (ch = (u_char)*fmt++) { base = 10; goto number; case 'l': - lflag = 1; + if (lflag) { + lflag = 0; + qflag = 1; + } else + lflag = 1; goto reswitch; case 'o': if (qflag) |