Commit cdbe6dfe authored by Joe Eykholt's avatar Joe Eykholt Committed by James Bottomley

[SCSI] libfc: rport debug messages were printing pointer values

Don't print large negative decimal numbers for frame pointers in
the debug messages from fc_rport_error().  Just print 0 if its a
frame pointer, and print the error numbers as positive.
Signed-off-by: default avatarJoe Eykholt <jeykholt@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent b84c7962
...@@ -436,7 +436,8 @@ static void fc_rport_timeout(struct work_struct *work) ...@@ -436,7 +436,8 @@ static void fc_rport_timeout(struct work_struct *work)
static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp)
{ {
FC_RPORT_DBG(rdata, "Error %ld in state %s, retries %d\n", FC_RPORT_DBG(rdata, "Error %ld in state %s, retries %d\n",
PTR_ERR(fp), fc_rport_state(rdata), rdata->retries); IS_ERR(fp) ? -PTR_ERR(fp) : 0,
fc_rport_state(rdata), rdata->retries);
switch (rdata->rp_state) { switch (rdata->rp_state) {
case RPORT_ST_PLOGI: case RPORT_ST_PLOGI:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment