diff options
author | phk <phk@FreeBSD.org> | 1996-01-19 21:05:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-19 21:05:52 +0000 |
commit | fd032b69a65de38d570f0e4652c6202b4473ee6e (patch) | |
tree | ec611119efe0fa94dc235768b2dd14089776a60c /sys/kern/subr_prf.c | |
parent | 6be8e3ab725c20a43a192015791afaf02cf1ed57 (diff) | |
download | FreeBSD-src-fd032b69a65de38d570f0e4652c6202b4473ee6e.zip FreeBSD-src-fd032b69a65de38d570f0e4652c6202b4473ee6e.tar.gz |
Imake %.*s really work. :-(
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 66bd1f6..0ca44f8 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.23 1996/01/18 10:23:02 phk Exp $ + * $Id: subr_prf.c,v 1.24 1996/01/19 11:38:18 phk Exp $ */ #include "opt_ddb.h" @@ -466,10 +466,14 @@ reswitch: switch (ch = *(u_char *)fmt++) { PCHAR(ch); break; case '*': - width = va_arg(ap, int); - if (width < 0) { - ladjust = !ladjust; - width = -width; + if (!dot) { + width = va_arg(ap, int); + if (width < 0) { + ladjust = !ladjust; + width = -width; + } + } else { + dwidth = va_arg(ap, int); } goto reswitch; case '0': |