svn commit: r214367 - stable/8/sys/dev/aac
Attilio Rao
attilio at FreeBSD.org
Tue Oct 26 00:58:15 UTC 2010
Author: attilio
Date: Tue Oct 26 00:58:15 2010
New Revision: 214367
URL: http://svn.freebsd.org/changeset/base/214367
Log:
MFC r212773 by emaste:
Use device_printf where possible, and otherwise at least include the
driver name in printf strings.
Sponsored by: Sandvine Incorporated
Modified:
stable/8/sys/dev/aac/aac.c
stable/8/sys/dev/aac/aac_cam.c
stable/8/sys/dev/aac/aac_disk.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/dev/aac/aac.c
==============================================================================
--- stable/8/sys/dev/aac/aac.c Tue Oct 26 00:56:23 2010 (r214366)
+++ stable/8/sys/dev/aac/aac.c Tue Oct 26 00:58:15 2010 (r214367)
@@ -391,7 +391,7 @@ aac_get_container_info(struct aac_softc
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);
}
Modified: stable/8/sys/dev/aac/aac_cam.c
==============================================================================
--- stable/8/sys/dev/aac/aac_cam.c Tue Oct 26 00:56:23 2010 (r214366)
+++ stable/8/sys/dev/aac/aac_cam.c Tue Oct 26 00:58:15 2010 (r214367)
@@ -569,7 +569,7 @@ aac_cam_reset_bus(struct cam_sim *sim, u
sc = camsc->inf->aac_sc;
if (sc == NULL) {
- printf("Null sc?\n");
+ printf("aac: Null sc?\n");
return (CAM_REQ_ABORTED);
}
Modified: stable/8/sys/dev/aac/aac_disk.c
==============================================================================
--- stable/8/sys/dev/aac/aac_disk.c Tue Oct 26 00:56:23 2010 (r214366)
+++ stable/8/sys/dev/aac/aac_disk.c Tue Oct 26 00:58:15 2010 (r214367)
@@ -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,
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,
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);
}
More information about the svn-src-all
mailing list