diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-13 03:49:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-13 03:49:33 +0000 |
commit | 51ad6938493c844ac037a3b269772c56f0c368f5 (patch) | |
tree | 294c8b3c3c48105a2cadada979595387ca239d43 /sys/dev/ipmi.c | |
parent | 1fe7088dced4cc748d251d49bb103ae7f9adb929 (diff) |
no need for device name before fail
Diffstat (limited to 'sys/dev/ipmi.c')
-rw-r--r-- | sys/dev/ipmi.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 3d85af239ef..449cc1062e5 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.22 2005/12/13 03:36:12 marco Exp $ */ +/* $OpenBSD: ipmi.c,v 1.23 2005/12/13 03:49:32 deraadt Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -1631,8 +1631,7 @@ ipmi_attach(struct device *parent, struct device *self, void *aux) sc->sc_thread = malloc(sizeof(struct ipmi_thread), M_DEVBUF, M_NOWAIT); if (sc->sc_thread == NULL) { - printf("%s: unable to allocate thread\n", - DEVNAME(sc)); + printf(": unable to allocate thread\n"); return; } sc->sc_thread->sc = sc; @@ -1643,13 +1642,11 @@ ipmi_attach(struct device *parent, struct device *self, void *aux) /* Identify BMC device */ if (ipmi_sendcmd(sc, BMC_SA, 0, APP_NETFN, APP_GET_DEVICE_ID, 0, NULL)){ - printf("%s: unable to send get device id command\n", - DEVNAME(sc)); + printf(": unable to send get device id command\n"); return; } if (ipmi_recvcmd(sc, sizeof(cmd), &len, cmd)) { - printf("%s: unable to retrieve device id\n", - DEVNAME(sc)); + printf(": unable to retrieve device id\n"); return; } dbg_dump(1, "bmc data", len, cmd); |