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

Configure Feed

Select the types of activity you want to include in your feed.

scsi: fix qla2xxx printk format warning

sector_t can be different types, so cast it to its largest possible
type.

drivers/scsi/qla2xxx/qla_isr.c:1509:5: warning: format '%lx' expects type 'long unsigned int', but argument 5 has type 'sector_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
8ec9c7fb 2b7fe39b

+2 -2
+2 -2
drivers/scsi/qla2xxx/qla_isr.c
··· 1507 1507 1508 1508 if (k != blocks_done) { 1509 1509 qla_printk(KERN_WARNING, sp->fcport->vha->hw, 1510 - "unexpected tag values tag:lba=%x:%lx)\n", 1511 - e_ref_tag, lba_s); 1510 + "unexpected tag values tag:lba=%x:%llx)\n", 1511 + e_ref_tag, (unsigned long long)lba_s); 1512 1512 return 1; 1513 1513 } 1514 1514