diff options
author | bde <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
commit | 2a5ff1f726f814a9e4717afe3f14250f8030cace (patch) | |
tree | c5bd4c78368007300b5100d7218bf7f088f0d215 /sys/cam | |
parent | c0b846b2a45d1386c0f10d01639652b562c48195 (diff) | |
download | FreeBSD-src-2a5ff1f726f814a9e4717afe3f14250f8030cace.zip FreeBSD-src-2a5ff1f726f814a9e4717afe3f14250f8030cace.tar.gz |
Use devtoname() to print dev_t's instead of casting them to long or u_long
for misprinting in %lx format.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 594ca34..ac0af54 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_da.c,v 1.33 1999/08/15 23:34:40 mjacob Exp $ + * $Id: scsi_da.c,v 1.34 1999/08/21 06:23:50 msmith Exp $ */ #include "opt_hw_wdog.h" @@ -282,7 +282,7 @@ daopen(dev_t dev, int flags, int fmt, struct proc *p) softc = (struct da_softc *)periph->softc; CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, - ("daopen: dev=0x%lx (unit %d , partition %d)\n", (long) dev, + ("daopen: dev=%s (unit %d , partition %d)\n", devtoname(dev), unit, part)); if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) { |