Hi Hannes, > Replace the remaining callsites to use dev_printk() and friends. > @@ -336,9 +328,7 @@ bfad_debugfs_write_regwr(struct file *file, const char __user *buf, > /* offset and len sanity check */ > rc = bfad_reg_offset_check(bfa, addr, 1); > if (rc) { > - printk(KERN_INFO > - "bfad[%d]: Failed reg offset check\n", > - bfad->inst_no); > + BFA_MSG(KERN_INFO, bfad, "Failed reg offset check\n"); > return -EINVAL; > } > > diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h > index eaee7c8bc2d2..619a7e47553b 100644 > --- a/drivers/scsi/bfa/bfad_drv.h > +++ b/drivers/scsi/bfa/bfad_drv.h > @@ -286,6 +286,9 @@ do { \ > dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \ > } while (0) > > +#define BFA_MSG(level, bfad, fmt, arg...) \ > + dev_warn(&((bfad)->pcidev)->dev, "bfad%d: " fmt, (bfad)->inst_no, ##arg); > + Looks like all the KERN_{INFO,ALERT,ERR} messages get turned into KERN_WARNING with this change. 'level' doesn't appear to be used anywhere. Am I missing something? -- Martin K. Petersen Oracle Linux Engineering