[Midnightbsd-cvs] src [8754] trunk/sys/cam/ctl/scsi_ctl.c: Print FC PortID as a hex number.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 22:38:03 EDT 2016
Revision: 8754
http://svnweb.midnightbsd.org/src/?rev=8754
Author: laffer1
Date: 2016-09-25 22:38:03 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
Print FC PortID as a hex number.
Modified Paths:
--------------
trunk/sys/cam/ctl/scsi_ctl.c
Modified: trunk/sys/cam/ctl/scsi_ctl.c
===================================================================
--- trunk/sys/cam/ctl/scsi_ctl.c 2016-09-26 02:37:24 UTC (rev 8753)
+++ trunk/sys/cam/ctl/scsi_ctl.c 2016-09-26 02:38:03 UTC (rev 8754)
@@ -499,7 +499,7 @@
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");
@@ -590,7 +590,7 @@
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;
@@ -624,7 +624,7 @@
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;
More information about the Midnightbsd-cvs
mailing list