summaryrefslogtreecommitdiffstats
path: root/sys/dev/ahb
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-06-17 15:21:09 +0000
committerscottl <scottl@FreeBSD.org>2007-06-17 15:21:09 +0000
commit70ec3eb958f5f012f611192962128aa76b3b4f0c (patch)
tree6538245c317623180bec6a7d6aee6a475beb2a5f /sys/dev/ahb
parentdfd8d06806228c14d0c9359d5440df2ebd317860 (diff)
downloadFreeBSD-src-70ec3eb958f5f012f611192962128aa76b3b4f0c.zip
FreeBSD-src-70ec3eb958f5f012f611192962128aa76b3b4f0c.tar.gz
Fix a compile error from the last change.
Diffstat (limited to 'sys/dev/ahb')
-rw-r--r--sys/dev/ahb/ahb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index dc0f933..10ecd6d 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -409,7 +409,7 @@ ahballoc(device_t dev, struct resource *res)
*/
ahb = malloc(sizeof(struct ahb_softc), M_DEVBUF, M_NOWAIT | M_ZERO);
if (!ahb) {
- printf("ahb%ld: cannot malloc!\n", unit);
+ device_printf(dev, "cannot malloc!\n");
return (NULL);
}
SLIST_INIT(&ahb->free_ecbs);
OpenPOWER on IntegriCloud