diff options
author | Bruce Evans <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
commit | d9183205179005f7582d41a23d4588b0b1140298 (patch) | |
tree | cb0c87b1224a17a7657b367fe1937277ed20037a /sys/cam | |
parent | 80e6247e720f131335d1f045e88f9a313e05cc81 (diff) | |
download | src-d9183205179005f7582d41a23d4588b0b1140298.tar.gz src-d9183205179005f7582d41a23d4588b0b1140298.zip |
Use devtoname() to print dev_t's instead of casting them to long or u_long
for misprinting in %lx format.
Notes
Notes:
svn path=/head/; revision=50253
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 594ca3418807..ac0af545f637 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) { |