summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2007-11-03 05:49:18 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2007-11-03 05:49:18 +0000
commit013766baf5b799a36485e12686090778abe2032b (patch)
tree580a804b152bcaf8379c716b9ccee33958f0c4d2 /sys/arch/amd64
parent5a5d4c7a2618ac3a50c65233046d5ecbeaee1331 (diff)
don't spam dmesg with huge, whitespace padded bios strings.
ok beck, gwk
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/bios.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c
index cbf4319e5e8..d685f03e3ba 100644
--- a/sys/arch/amd64/amd64/bios.c
+++ b/sys/arch/amd64/amd64/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.12 2007/08/06 16:12:25 gwk Exp $ */
+/* $OpenBSD: bios.c,v 1.13 2007/11/03 05:49:17 ckuethe Exp $ */
/*
* Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca>
*
@@ -131,13 +131,15 @@ bios_attach(struct device *parent, struct device *self, void *aux)
printf("\n%s:", sc->sc_dev.dv_xname);
if ((smbios_get_string(&bios, sb->vendor,
scratch, sizeof(scratch))) != NULL)
- printf(" vendor %s", scratch);
+ printf(" vendor %s",
+ fixstring(scratch));
if ((smbios_get_string(&bios, sb->version,
scratch, sizeof(scratch))) != NULL)
- printf(" version \"%s\"", scratch);
+ printf(" version \"%s\"",
+ fixstring(scratch));
if ((smbios_get_string(&bios, sb->release,
scratch, sizeof(scratch))) != NULL)
- printf(" date %s", scratch);
+ printf(" date %s", fixstring(scratch));
}
smbios_info(sc->sc_dev.dv_xname);