summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-13 19:07:06 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-13 19:07:06 +0000
commit4dfa98b95b22eff3639a3c3a0aea9e6d20616dc3 (patch)
tree6d9cc884b34d30ba34fb63e49abc4d04b1035270 /sys/dev/i2c
parentddd21ab68882fd00867f848a65999c49809219f9 (diff)
really correct : printing; ok deraadt@
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/spdmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c
index 60efb309596..9fc22335601 100644
--- a/sys/dev/i2c/spdmem.c
+++ b/sys/dev/i2c/spdmem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spdmem.c,v 1.9 2007/10/11 06:04:57 jsg Exp $ */
+/* $OpenBSD: spdmem.c,v 1.10 2007/10/13 19:07:05 cnst Exp $ */
/* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */
/*
@@ -231,7 +231,7 @@ spdmem_attach(struct device *parent, struct device *self, void *aux)
sc->sc_tag = ia->ia_tag;
sc->sc_addr = ia->ia_addr;
- printf(": ");
+ printf(":");
/* All SPD have at least 64 bytes of data including checksum */
for (i = 0; i < 64; i++) {
@@ -280,7 +280,7 @@ spdmem_attach(struct device *parent, struct device *self, void *aux)
if (IS_RAMBUS_TYPE) {
rows = s->sm_data[SPDMEM_RDR_ROWS_COLS] & 0x0f;
cols = s->sm_data[SPDMEM_RDR_ROWS_COLS] >> 4;
- printf("%dMB", 1 << (rows + cols - 13));
+ printf(" %dMB", 1 << (rows + cols - 13));
} else if (s->sm_type == SPDMEM_MEMTYPE_SDRAM ||
s->sm_type == SPDMEM_MEMTYPE_DDRSDRAM) {
rows = s->sm_data[SPDMEM_SDR_ROWS] & 0x0f;
@@ -298,7 +298,7 @@ spdmem_attach(struct device *parent, struct device *self, void *aux)
if (!(IS_RAMBUS_TYPE) && num_banks <= 8 && per_chip <= 8 &&
dimm_size > 0 && dimm_size <= 12) {
dimm_size = (1 << dimm_size) * num_banks * per_chip;
- printf("%dMB", dimm_size);
+ printf(" %dMB", dimm_size);
}
printf(" %s", type);