diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2011-01-27 21:29:26 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2011-01-27 21:29:26 +0000 |
commit | c37c86e4ee21cd69b53854752cfe7e91a1202601 (patch) | |
tree | 4f3dae5f6e5ceda06cb7b66c9e305c9c9fa9223a /sys/dev | |
parent | 443de5ee056ec38c000a0b9f35b7fb09c849cd96 (diff) |
Fix newlines for error on attach case. with & ok dlg.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/vmt.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/vmt.c b/sys/dev/vmt.c index 23e3c2890fb..d6bea7b8c8c 100644 --- a/sys/dev/vmt.c +++ b/sys/dev/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.10 2010/11/03 10:15:23 dlg Exp $ */ +/* $OpenBSD: vmt.c,v 1.11 2011/01/27 21:29:25 dtucker Exp $ */ /* * Copyright (c) 2007 David Crawshaw <david@zentus.com> @@ -255,14 +255,17 @@ vmt_attach(struct device *parent, struct device *self, void *aux) { struct vmt_softc *sc = (struct vmt_softc *)self; + printf("\n"); sc->sc_rpc_buf = malloc(VMT_RPC_BUFLEN, M_DEVBUF, M_NOWAIT); if (sc->sc_rpc_buf == NULL) { - printf(": unable to allocate buffer for RPC\n"); + printf("%s: unable to allocate buffer for RPC\n", + DEVNAME(sc)); return; } if (vm_rpc_open(&sc->sc_tclo_rpc, VM_RPC_OPEN_TCLO) != 0) { - printf(": failed to open backdoor RPC channel (TCLO protocol)\n"); + printf("%s: failed to open backdoor RPC channel " + "(TCLO protocol)\n", DEVNAME(sc)); goto free; } @@ -290,7 +293,6 @@ vmt_attach(struct device *parent, struct device *self, void *aux) timeout_add_sec(&sc->sc_tclo_tick, 1); sc->sc_tclo_ping = 1; - printf("\n"); return; free: |