summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2012-06-01 23:24:56 +0000
committermjacob <mjacob@FreeBSD.org>2012-06-01 23:24:56 +0000
commitf2720055c7f6d97725f2a042dd27c8b19c917ef5 (patch)
treeea42eb855df8da68a134692283c3cfd7b2ef1565
parent982ce065348d9bd67503fb3da9b35e61d73cbe67 (diff)
downloadFreeBSD-src-f2720055c7f6d97725f2a042dd27c8b19c917ef5.zip
FreeBSD-src-f2720055c7f6d97725f2a042dd27c8b19c917ef5.tar.gz
Print FC PortID as a hex number. This makes it easy to
figure out domain, etc.. Zero ATIO and INOTify allocations. It makes for much less guesswork when looking at the structure and seeing 'deadc0de' present. Reviewed by: kdm MFC after: 2 weeks Sponsored by: Spectralogic
-rw-r--r--sys/cam/ctl/scsi_ctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c
index f3ba03b..0563f72 100644
--- a/sys/cam/ctl/scsi_ctl.c
+++ b/sys/cam/ctl/scsi_ctl.c
@@ -490,7 +490,7 @@ ctlfeasync(void *callback_arg, uint32_t code, struct cam_path *path, void *arg)
dev_chg = (struct ac_device_changed *)ac->contract_data;
- printf("%s: WWPN %#jx port %u path %u target %u %s\n",
+ printf("%s: WWPN %#jx port 0x%06x path %u target %u %s\n",
__func__, dev_chg->wwpn, dev_chg->port,
xpt_path_path_id(path), dev_chg->target,
(dev_chg->arrived == 0) ? "left" : "arrived");
@@ -582,7 +582,7 @@ ctlferegister(struct cam_periph *periph, void *arg)
union ccb *new_ccb;
new_ccb = (union ccb *)malloc(sizeof(*new_ccb), M_CTLFE,
- M_NOWAIT);
+ M_ZERO|M_NOWAIT);
if (new_ccb == NULL) {
status = CAM_RESRC_UNAVAIL;
break;
@@ -616,7 +616,7 @@ ctlferegister(struct cam_periph *periph, void *arg)
union ccb *new_ccb;
new_ccb = (union ccb *)malloc(sizeof(*new_ccb), M_CTLFE,
- M_NOWAIT);
+ M_ZERO|M_NOWAIT);
if (new_ccb == NULL) {
status = CAM_RESRC_UNAVAIL;
break;
OpenPOWER on IntegriCloud