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.

cciss: fix DEBUG printk formats

Fix printk format warnings when CCISS_DEBUG is defined.

drivers/block/cciss.c:2856: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
drivers/block/cciss.c:3205: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
drivers/block/cciss.c:3236: warning: format '%x' expects type 'unsigned int', but argument 2 has type '__u64'
drivers/block/cciss.c:3246: warning: format '%x' expects type 'unsigned int', but argument 2 has type '__u64'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
9f92f471 06b0d4dc

+5 -4
+5 -4
drivers/block/cciss.c
··· 2847 2847 h->maxSG = seg; 2848 2848 2849 2849 #ifdef CCISS_DEBUG 2850 - printk(KERN_DEBUG "cciss: Submitting %d sectors in %d segments\n", 2850 + printk(KERN_DEBUG "cciss: Submitting %lu sectors in %d segments\n", 2851 2851 creq->nr_sectors, seg); 2852 2852 #endif /* CCISS_DEBUG */ 2853 2853 ··· 3197 3197 3198 3198 c->paddr = pci_resource_start(pdev, 0); /* addressing mode bits already removed */ 3199 3199 #ifdef CCISS_DEBUG 3200 - printk("address 0 = %x\n", c->paddr); 3200 + printk("address 0 = %lx\n", c->paddr); 3201 3201 #endif /* CCISS_DEBUG */ 3202 3202 c->vaddr = remap_pci_mem(c->paddr, 0x250); 3203 3203 ··· 3224 3224 #endif /* CCISS_DEBUG */ 3225 3225 cfg_base_addr_index = find_PCI_BAR_index(pdev, cfg_base_addr); 3226 3226 #ifdef CCISS_DEBUG 3227 - printk("cfg base address index = %x\n", cfg_base_addr_index); 3227 + printk("cfg base address index = %llx\n", 3228 + (unsigned long long)cfg_base_addr_index); 3228 3229 #endif /* CCISS_DEBUG */ 3229 3230 if (cfg_base_addr_index == -1) { 3230 3231 printk(KERN_WARNING "cciss: Cannot find cfg_base_addr_index\n"); ··· 3235 3234 3236 3235 cfg_offset = readl(c->vaddr + SA5_CTMEM_OFFSET); 3237 3236 #ifdef CCISS_DEBUG 3238 - printk("cfg offset = %x\n", cfg_offset); 3237 + printk("cfg offset = %llx\n", (unsigned long long)cfg_offset); 3239 3238 #endif /* CCISS_DEBUG */ 3240 3239 c->cfgtable = remap_pci_mem(pci_resource_start(pdev, 3241 3240 cfg_base_addr_index) +