Skip to content

Commit

Permalink
[SCSI] libfc: rport debug messages were printing pointer values
Browse files Browse the repository at this point in the history
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: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Sep 10, 2009
1 parent b84c796 commit cdbe6df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
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) {
case RPORT_ST_PLOGI:
Expand Down

0 comments on commit cdbe6df

Please sign in to comment.