Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: mpt3sas: Add ioc_<level> logging macros

These macros can help identify specific logging uses and eventually perhaps
reduce object sizes.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Suganath Prabu <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Joe Perches and committed by
Martin K. Petersen
645a20c6 3bf31de7

+9
+9
drivers/scsi/mpt3sas/mpt3sas_base.h
··· 160 160 */ 161 161 #define MPT3SAS_FMT "%s: " 162 162 163 + #define ioc_err(ioc, fmt, ...) \ 164 + pr_err("%s: " fmt, (ioc)->name, ##__VA_ARGS__) 165 + #define ioc_notice(ioc, fmt, ...) \ 166 + pr_notice("%s: " fmt, (ioc)->name, ##__VA_ARGS__) 167 + #define ioc_warn(ioc, fmt, ...) \ 168 + pr_warn("%s: " fmt, (ioc)->name, ##__VA_ARGS__) 169 + #define ioc_info(ioc, fmt, ...) \ 170 + pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__) 171 + 163 172 /* 164 173 * WarpDrive Specific Log codes 165 174 */