diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-04-22 03:58:46 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-04-22 03:58:46 +0000 |
commit | 4495996ef7629603fc98bd3b17699f51ba537b2b (patch) | |
tree | cbe7c89c5e70166e6bbd09ce6d93e3f3d7f2ab40 | |
parent | 6600a0c36dca33970472effcbe24a2818ee32f5c (diff) | |
download | FreeBSD-src-4495996ef7629603fc98bd3b17699f51ba537b2b.zip FreeBSD-src-4495996ef7629603fc98bd3b17699f51ba537b2b.tar.gz |
Tiny printf formatting change: if we have no cpu_vendor or cpu_id info,
don't generate a newline. (Yeah, I'm picking nits, but that empty line
I get on my 386 just looks dumb, okay? :)
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index bd154c9..87c0ff9 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.120 1995/04/17 16:49:50 phk Exp $ + * $Id: machdep.c,v 1.121 1995/04/18 23:55:26 rgrimes Exp $ */ #include "npx.h" @@ -537,7 +537,9 @@ identifycpu() printf("\n Features=0x%b", cpu_feature, FEATUREFMT); } } - printf("\n"); + /* Avoid ugly blank lines: only print newline when we have to. */ + if (*cpu_vendor || cpu_id) + printf("\n"); #endif /* * Now that we have told the user what they have, diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index bd154c9..87c0ff9 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.120 1995/04/17 16:49:50 phk Exp $ + * $Id: machdep.c,v 1.121 1995/04/18 23:55:26 rgrimes Exp $ */ #include "npx.h" @@ -537,7 +537,9 @@ identifycpu() printf("\n Features=0x%b", cpu_feature, FEATUREFMT); } } - printf("\n"); + /* Avoid ugly blank lines: only print newline when we have to. */ + if (*cpu_vendor || cpu_id) + printf("\n"); #endif /* * Now that we have told the user what they have, |