Skip to content

Commit

Permalink
scsi: mpt3sas: Add ioc_<level> logging macros
Browse files Browse the repository at this point in the history
These macros can help identify specific logging uses and eventually perhaps
reduce object sizes.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Suganath Prabu <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
JoePerches authored and martinkpetersen committed Oct 11, 2018
1 parent 3bf31de commit 645a20c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/scsi/mpt3sas/mpt3sas_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ struct mpt3sas_nvme_cmd {
*/
#define MPT3SAS_FMT "%s: "

#define ioc_err(ioc, fmt, ...) \
pr_err("%s: " fmt, (ioc)->name, ##__VA_ARGS__)
#define ioc_notice(ioc, fmt, ...) \
pr_notice("%s: " fmt, (ioc)->name, ##__VA_ARGS__)
#define ioc_warn(ioc, fmt, ...) \
pr_warn("%s: " fmt, (ioc)->name, ##__VA_ARGS__)
#define ioc_info(ioc, fmt, ...) \
pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__)

/*
* WarpDrive Specific Log codes
*/
Expand Down

0 comments on commit 645a20c

Please sign in to comment.