#define dprint(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_event_th(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_EVENT) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_event_bh(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_EVENT_WORK_TASK) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_init(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_INIT) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_exit(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_EXIT) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_tm(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_TM) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_reply(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_REPLY) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_reset(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_RESET) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_scsi_info(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_SCSI_INFO) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_scsi_err(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_SCSI_ERROR) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_scsi_command(ioc, SCMD, LOG_LEVEL) \ do { \ if (ioc->logging_level & LOG_LEVEL) \
scsi_print_command(SCMD); \
} while (0)
#define dprint_bsg_info(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_BSG_INFO) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_bsg_err(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_BSG_ERROR) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_cfg_info(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_CFG_INFO) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_cfg_err(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_CFG_ERROR) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0) #define dprint_transport_info(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_TRANSPORT_INFO) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#define dprint_transport_err(ioc, fmt, ...) \ do { \ if (ioc->logging_level & MPI3_DEBUG_TRANSPORT_ERROR) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__); \
} while (0)
#endif/* MPT3SAS_DEBUG_H_INCLUDED */
/** * dprint_dump - print contents of a memory buffer * @req: Pointer to a memory buffer * @sz: Memory buffer size * @namestr: Name String to identify the buffer type
*/ staticinlinevoid
dprint_dump(void *req, int sz, constchar *name_string)
{ int i;
__le32 *mfp = (__le32 *)req;
sz = sz/4; if (name_string)
pr_info("%s:\n\t", name_string); else
pr_info("request:\n\t"); for (i = 0; i < sz; i++) { if (i && ((i % 8) == 0))
pr_info("\n\t");
pr_info("%08x ", le32_to_cpu(mfp[i]));
}
pr_info("\n");
}
/** * dprint_dump_req - print message frame contents * @req: pointer to message frame * @sz: number of dwords
*/ staticinlinevoid
dprint_dump_req(void *req, int sz)
{ int i;
__le32 *mfp = (__le32 *)req;
pr_info("request:\n\t"); for (i = 0; i < sz; i++) { if (i && ((i % 8) == 0))
pr_info("\n\t");
pr_info("%08x ", le32_to_cpu(mfp[i]));
}
pr_info("\n");
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.