Fix attach messages. (extra colons, misplaced newline etc.)
This commit is contained in:
parent
5ef4b69613
commit
6bebd690e9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cuda.c,v 1.8 2008/05/16 02:45:16 macallan Exp $ */
|
||||
/* $NetBSD: cuda.c,v 1.9 2008/12/07 08:24:26 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Michael Lorenz
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.8 2008/05/16 02:45:16 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.9 2008/12/07 08:24:26 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -184,7 +184,7 @@ cuda_attach(device_t parent, device_t dev, void *aux)
|
|||
if (node)
|
||||
OF_getprop(node, "interrupts", &irq, 4);
|
||||
|
||||
printf(" irq %d: ", irq);
|
||||
printf(" irq %d", irq);
|
||||
|
||||
sc->sc_node = ca->ca_node;
|
||||
sc->sc_memt = ca->ca_tag;
|
||||
|
@ -200,7 +200,7 @@ cuda_attach(device_t parent, device_t dev, void *aux)
|
|||
if (bus_space_map(sc->sc_memt, ca->ca_reg[0] + ca->ca_baseaddr,
|
||||
ca->ca_reg[1], 0, &sc->sc_memh) != 0) {
|
||||
|
||||
printf("%s: unable to map registers\n", dev->dv_xname);
|
||||
printf(": unable to map registers\n");
|
||||
return;
|
||||
}
|
||||
sc->sc_ih = intr_establish(irq, IST_EDGE, IPL_TTY, cuda_intr, sc);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zs.c,v 1.47 2008/06/13 11:54:31 cegger Exp $ */
|
||||
/* $NetBSD: zs.c,v 1.48 2008/12/07 08:24:26 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1998 Bill Studenmund
|
||||
|
@ -54,7 +54,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.47 2008/06/13 11:54:31 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.48 2008/12/07 08:24:26 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
|
@ -253,7 +253,7 @@ zsc_attach(device_t parent, device_t self, void *aux)
|
|||
node = OF_peer(node); /* ch-b */
|
||||
}
|
||||
|
||||
aprint_normal(": irq %d,%d\n", intr[0][0], intr[1][0]);
|
||||
aprint_normal(" irq %d,%d\n", intr[0][0], intr[1][0]);
|
||||
|
||||
/*
|
||||
* Initialize software state for each channel.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memory.c,v 1.1 2008/08/26 16:11:18 macallan Exp $ */
|
||||
/* $NetBSD: memory.c,v 1.2 2008/12/07 08:24:26 tsutsui Exp $ */
|
||||
/* $OpenBSD: mem.c,v 1.15 2007/10/14 17:29:04 kettenis Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -46,7 +46,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: memory.c,v 1.1 2008/08/26 16:11:18 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: memory.c,v 1.2 2008/12/07 08:24:26 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -98,13 +98,13 @@ memory_attach(struct device *parent, struct device *self, void *aux)
|
|||
struct i2c_attach_args ia;
|
||||
|
||||
sc->sc_len = OF_getproplen(ca->ca_node, "dimm-info");
|
||||
printf("len: %d\n", sc->sc_len);
|
||||
if (sc->sc_len > 0) {
|
||||
sc->sc_buf = malloc(sc->sc_len, M_DEVBUF, M_NOWAIT);
|
||||
if (sc->sc_buf == NULL) {
|
||||
printf(": can't allocate memory\n");
|
||||
return;
|
||||
}
|
||||
printf(": len=%d", sc->sc_len);
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
|
|
Loading…
Reference in New Issue