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

treewide: Fix printks with 0x%#

Using 0x%# emits 0x0x. Only one is necessary.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Joe Perches and committed by
Jiri Kosina
8e33a52f 51d8a7b0

+7 -7
+1 -1
arch/parisc/kernel/signal.c
··· 85 85 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); 86 86 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); 87 87 err |= __get_user(regs->sar, &sc->sc_sar); 88 - DBG(2,"restore_sigcontext: iaoq is 0x%#lx / 0x%#lx\n", 88 + DBG(2,"restore_sigcontext: iaoq is %#lx / %#lx\n", 89 89 regs->iaoq[0],regs->iaoq[1]); 90 90 DBG(2,"restore_sigcontext: r28 is %ld\n", regs->gr[28]); 91 91 return err;
+2 -2
drivers/clocksource/acpi_pm.c
··· 200 200 if ((value2 < value1) && ((value2) < 0xFFF)) 201 201 break; 202 202 printk(KERN_INFO "PM-Timer had inconsistent results:" 203 - " 0x%#llx, 0x%#llx - aborting.\n", 203 + " %#llx, %#llx - aborting.\n", 204 204 value1, value2); 205 205 pmtmr_ioport = 0; 206 206 return -EINVAL; 207 207 } 208 208 if (i == ACPI_PM_READ_CHECKS) { 209 209 printk(KERN_INFO "PM-Timer failed consistency check " 210 - " (0x%#llx) - aborting.\n", value1); 210 + " (%#llx) - aborting.\n", value1); 211 211 pmtmr_ioport = 0; 212 212 return -ENODEV; 213 213 }
+1 -1
drivers/net/ethernet/sis/sis900.c
··· 1723 1723 1724 1724 if(netif_msg_intr(sis_priv)) 1725 1725 printk(KERN_DEBUG "%s: exiting interrupt, " 1726 - "interrupt status = 0x%#8.8x.\n", 1726 + "interrupt status = %#8.8x\n", 1727 1727 net_dev->name, sr32(isr)); 1728 1728 1729 1729 spin_unlock (&sis_priv->lock);
+1 -1
mm/memory-failure.c
··· 1265 1265 if (kfifo_put(&mf_cpu->fifo, &entry)) 1266 1266 schedule_work_on(smp_processor_id(), &mf_cpu->work); 1267 1267 else 1268 - pr_err("Memory failure: buffer overflow when queuing memory failure at 0x%#lx\n", 1268 + pr_err("Memory failure: buffer overflow when queuing memory failure at %#lx\n", 1269 1269 pfn); 1270 1270 spin_unlock_irqrestore(&mf_cpu->lock, proc_flags); 1271 1271 put_cpu_var(memory_failure_cpu);
+1 -1
sound/pci/ens1370.c
··· 1842 1842 1843 1843 default: 1844 1844 if (!request_region(io_port, 8, "ens137x: gameport")) { 1845 - printk(KERN_WARNING "ens137x: gameport io port 0x%#x in use\n", 1845 + printk(KERN_WARNING "ens137x: gameport io port %#x in use\n", 1846 1846 io_port); 1847 1847 return -EBUSY; 1848 1848 }
+1 -1
sound/pci/via82xx.c
··· 1940 1940 1941 1941 r = request_region(JOYSTICK_ADDR, 8, "VIA686 gameport"); 1942 1942 if (!r) { 1943 - printk(KERN_WARNING "via82xx: cannot reserve joystick port 0x%#x\n", 1943 + printk(KERN_WARNING "via82xx: cannot reserve joystick port %#x\n", 1944 1944 JOYSTICK_ADDR); 1945 1945 return -EBUSY; 1946 1946 }