if (!fcport)
                return;
 
+       ql_dbg(ql_dbg_async, fcport->vha, 0x5101,
+              DBG_FCPORT_PRFMT(fcport, "dev_loss_tmo expiry, rport_state=%d",
+                               rport->port_state));
 
        /*
         * Now that the rport has been deleted, set the fcport state to
 
 #define IS_SESSION_DELETED(_fcport) (_fcport->disc_state == DSC_DELETE_PEND || \
                                      _fcport->disc_state == DSC_DELETED)
 
+#define DBG_FCPORT_PRFMT(_fp, _fmt, _args...) \
+       "%s: %8phC: " _fmt " (state=%d disc_state=%d scan_state=%d loopid=0x%x deleted=%d flags=0x%x)\n", \
+       __func__, _fp->port_name, ##_args, atomic_read(&_fp->state), \
+       _fp->disc_state, _fp->scan_state, _fp->loop_id, _fp->deleted, \
+       _fp->flags
+
 #endif