libfc: Debug code fixes
The second argument of fc_lport_error() may be a valid frame pointer. Hence only print it as an error code if it really is an error code. Debug statements must end in a newline. Add one where it is missing. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Cc: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Robert Love <robert.w.love@intel.com>
This commit is contained in:

committed by
Robert Love

szülő
c1d454246c
commit
b20d9bfda7
@@ -1088,7 +1088,7 @@ static void fc_lport_error(struct fc_lport *lport, struct fc_frame *fp)
|
||||
{
|
||||
unsigned long delay = 0;
|
||||
FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
|
||||
PTR_ERR(fp), fc_lport_state(lport),
|
||||
IS_ERR(fp) ? -PTR_ERR(fp) : 0, fc_lport_state(lport),
|
||||
lport->retry_count);
|
||||
|
||||
if (PTR_ERR(fp) == -FC_EX_CLOSED)
|
||||
|
Reference in New Issue
Block a user