Skip to content

Commit 55cf715

Browse files
Karan Tilak Kumarmartinkpetersen
authored andcommitted
scsi: fnic: Improve logs and add support for multiqueue (MQ)
Improve existing logs by adding fnic number, hardware queue, tag, and mqtag in the prints. Add logs with the above elements for effective debugging. Reviewed-by: Sesidhar Baddela <[email protected]> Reviewed-by: Arulprabhu Ponnusamy <[email protected]> Tested-by: Karan Tilak Kumar <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Karan Tilak Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c81df08 commit 55cf715

File tree

2 files changed

+154
-140
lines changed

2 files changed

+154
-140
lines changed

drivers/scsi/fnic/fnic.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ do { \
155155
"fnic<%d>: %s: %d: " fmt, fnic_num,\
156156
__func__, __LINE__, ##args);)
157157

158-
#define FNIC_SCSI_DBG(kern_level, host, fmt, args...) \
158+
#define FNIC_SCSI_DBG(kern_level, host, fnic_num, fmt, args...) \
159159
FNIC_CHECK_LOGGING(FNIC_SCSI_LOGGING, \
160-
shost_printk(kern_level, host, fmt, ##args);)
160+
shost_printk(kern_level, host, \
161+
"fnic<%d>: %s: %d: " fmt, fnic_num,\
162+
__func__, __LINE__, ##args);)
161163

162164
#define FNIC_ISR_DBG(kern_level, host, fnic_num, fmt, args...) \
163165
FNIC_CHECK_LOGGING(FNIC_ISR_LOGGING, \

0 commit comments

Comments
 (0)