summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-08-17 20:25:50 +0000
committerbillf <billf@FreeBSD.org>1999-08-17 20:25:50 +0000
commit4515ed49edc4262f23e777f1b40d670e8c6b1e82 (patch)
tree83c0c5a7384f6efe02a4acf9565c5f24357a6a9f /sys/cam
parent038fe873dd8c91ddd852d81bc5c30d02b5c76fa9 (diff)
downloadFreeBSD-src-4515ed49edc4262f23e777f1b40d670e8c6b1e82.zip
FreeBSD-src-4515ed49edc4262f23e777f1b40d670e8c6b1e82.tar.gz
Welcome devtoname(), to most likely be used when printing information
about a dev_t. printf("%x", dev) now becomes printf("%s", devtoname(dev)) because printing actual information about the device is much more useful then printing a pointer to an address that would never help the developer debug. Submitted by: phk, bde
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_pt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_pt.c b/sys/cam/scsi/scsi_pt.c
index e015c36..77dea13 100644
--- a/sys/cam/scsi/scsi_pt.c
+++ b/sys/cam/scsi/scsi_pt.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_pt.c,v 1.9 1999/05/30 16:51:05 phk Exp $
+ * $Id: scsi_pt.c,v 1.10 1999/05/31 11:24:07 phk Exp $
*/
#include <sys/param.h>
@@ -159,7 +159,7 @@ ptopen(dev_t dev, int flags, int fmt, struct proc *p)
}
CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
- ("ptopen: dev=0x%x (unit %d)\n", dev, unit));
+ ("ptopen: dev=%s (unit %d)\n", devtoname(dev), unit));
if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) {
splx(s);
OpenPOWER on IntegriCloud