summaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2010-10-26 00:58:15 +0000
committerAttilio Rao <attilio@FreeBSD.org>2010-10-26 00:58:15 +0000
commit47de14cf00f947b4dc47ed346155ea25b81fd5bb (patch)
tree9a40d1158c7bd30ed50888303db3924febde4857 /sys/dev/aac
parenta1c4998c4d96fed190932b965dac1ce6cfdf0c72 (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c2
-rw-r--r--sys/dev/aac/aac_cam.c2
-rw-r--r--sys/dev/aac/aac_disk.c13
3 files changed, 10 insertions, 7 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 7649afef02d3..e24d07fafd60 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -391,7 +391,7 @@ aac_get_container_info(struct aac_softc *sc, struct aac_fib *fib, int cid)
if (aac_sync_fib(sc, ContainerCommand, 0, fib,
sizeof(struct aac_mntinfo))) {
- printf("Error probing container %d\n", cid);
+ device_printf(sc->aac_dev, "Error probing container %d\n", cid);
return (NULL);
}
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c
index c1164aa2d3f9..ace22820fcd1 100644
--- a/sys/dev/aac/aac_cam.c
+++ b/sys/dev/aac/aac_cam.c
@@ -569,7 +569,7 @@ aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb)
sc = camsc->inf->aac_sc;
if (sc == NULL) {
- printf("Null sc?\n");
+ printf("aac: Null sc?\n");
return (CAM_REQ_ABORTED);
}
diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c
index 4a1a82b148a5..d98dac39c882 100644
--- a/sys/dev/aac/aac_disk.c
+++ b/sys/dev/aac/aac_disk.c
@@ -106,8 +106,9 @@ aac_disk_open(struct disk *dp)
/* check that the controller is up and running */
if (sc->ad_controller->aac_state & AAC_STATE_SUSPEND) {
- printf("Controller Suspended controller state = 0x%x\n",
- sc->ad_controller->aac_state);
+ device_printf(sc->ad_controller->aac_dev,
+ "Controller Suspended controller state = 0x%x\n",
+ sc->ad_controller->aac_state);
return(ENXIO);
}
@@ -252,7 +253,8 @@ aac_disk_dump(void *arg, void *virtual, vm_offset_t physical, off_t offset, size
if (!first) {
first = 1;
if (bus_dmamap_create(sc->aac_buffer_dmat, 0, &dump_datamap)) {
- printf("bus_dmamap_create failed\n");
+ device_printf(sc->aac_dev,
+ "bus_dmamap_create failed\n");
return (ENOMEM);
}
}
@@ -305,8 +307,9 @@ aac_disk_dump(void *arg, void *virtual, vm_offset_t physical, off_t offset, size
size += fib->Header.Size;
if (aac_sync_fib(sc, command, 0, fib, size)) {
- printf("Error dumping block 0x%jx\n",
- (uintmax_t)physical);
+ device_printf(sc->aac_dev,
+ "Error dumping block 0x%jx\n",
+ (uintmax_t)physical);
return (EIO);
}