ARM: 8152/1: Convert pr_warning to pr_warn
authorJoe Perches <joe@perches.com>
Tue, 16 Sep 2014 19:41:43 +0000 (20:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Sep 2014 13:39:53 +0000 (14:39 +0100)
Use the more common pr_warn.

Other miscellanea:

o Coalesce formats
o Realign arguments

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/syscall.h
arch/arm/kernel/atags_parse.c
arch/arm/kernel/hw_breakpoint.c
arch/arm/kernel/irq.c
arch/arm/kernel/perf_event_cpu.c
arch/arm/kernel/smp.c
arch/arm/kernel/unwind.c
arch/arm/mm/idmap.c
arch/arm/mm/mmu.c

index 4651f6999b7de9351de6259ab5b184a1898b32c1..e86c985b8c7ac3e564239457134e18574870d701 100644 (file)
@@ -63,8 +63,8 @@ static inline void syscall_get_arguments(struct task_struct *task,
        if (i + n > SYSCALL_MAX_ARGS) {
                unsigned long *args_bad = args + SYSCALL_MAX_ARGS - i;
                unsigned int n_bad = n + i - SYSCALL_MAX_ARGS;
-               pr_warning("%s called with max args %d, handling only %d\n",
-                          __func__, i + n, SYSCALL_MAX_ARGS);
+               pr_warn("%s called with max args %d, handling only %d\n",
+                       __func__, i + n, SYSCALL_MAX_ARGS);
                memset(args_bad, 0, n_bad * sizeof(args[0]));
                n = SYSCALL_MAX_ARGS - i;
        }
@@ -88,8 +88,8 @@ static inline void syscall_set_arguments(struct task_struct *task,
                return;
 
        if (i + n > SYSCALL_MAX_ARGS) {
-               pr_warning("%s called with max args %d, handling only %d\n",
-                          __func__, i + n, SYSCALL_MAX_ARGS);
+               pr_warn("%s called with max args %d, handling only %d\n",
+                       __func__, i + n, SYSCALL_MAX_ARGS);
                n = SYSCALL_MAX_ARGS - i;
        }
 
index 7807ef58a2abb88be8e452a47d2e4586168f63c2..528f8af2addb2a194de2d578032db1781a69dc7c 100644 (file)
@@ -130,7 +130,7 @@ static int __init parse_tag_cmdline(const struct tag *tag)
        strlcat(default_command_line, tag->u.cmdline.cmdline,
                COMMAND_LINE_SIZE);
 #elif defined(CONFIG_CMDLINE_FORCE)
-       pr_warning("Ignoring tag cmdline (using the default kernel command line)\n");
+       pr_warn("Ignoring tag cmdline (using the default kernel command line)\n");
 #else
        strlcpy(default_command_line, tag->u.cmdline.cmdline,
                COMMAND_LINE_SIZE);
index 4d963fb66e3f0bce4590e5885415916be9aba866..b5b452f90f761bd2a6961ddb774cda920894e5af 100644 (file)
@@ -113,8 +113,8 @@ static u32 read_wb_reg(int n)
        GEN_READ_WB_REG_CASES(ARM_OP2_WVR, val);
        GEN_READ_WB_REG_CASES(ARM_OP2_WCR, val);
        default:
-               pr_warning("attempt to read from unknown breakpoint "
-                               "register %d\n", n);
+               pr_warn("attempt to read from unknown breakpoint register %d\n",
+                       n);
        }
 
        return val;
@@ -128,8 +128,8 @@ static void write_wb_reg(int n, u32 val)
        GEN_WRITE_WB_REG_CASES(ARM_OP2_WVR, val);
        GEN_WRITE_WB_REG_CASES(ARM_OP2_WCR, val);
        default:
-               pr_warning("attempt to write to unknown breakpoint "
-                               "register %d\n", n);
+               pr_warn("attempt to write to unknown breakpoint register %d\n",
+                       n);
        }
        isb();
 }
@@ -292,7 +292,7 @@ int hw_breakpoint_slots(int type)
        case TYPE_DATA:
                return get_num_wrps();
        default:
-               pr_warning("unknown slot type: %d\n", type);
+               pr_warn("unknown slot type: %d\n", type);
                return 0;
        }
 }
@@ -365,7 +365,7 @@ int arch_install_hw_breakpoint(struct perf_event *bp)
        }
 
        if (i == max_slots) {
-               pr_warning("Can't find any breakpoint slot\n");
+               pr_warn("Can't find any breakpoint slot\n");
                return -EBUSY;
        }
 
@@ -417,7 +417,7 @@ void arch_uninstall_hw_breakpoint(struct perf_event *bp)
        }
 
        if (i == max_slots) {
-               pr_warning("Can't find any breakpoint slot\n");
+               pr_warn("Can't find any breakpoint slot\n");
                return;
        }
 
@@ -894,8 +894,8 @@ static int debug_reg_trap(struct pt_regs *regs, unsigned int instr)
 {
        int cpu = smp_processor_id();
 
-       pr_warning("Debug register access (0x%x) caused undefined instruction on CPU %d\n",
-                  instr, cpu);
+       pr_warn("Debug register access (0x%x) caused undefined instruction on CPU %d\n",
+               instr, cpu);
 
        /* Set the error flag for this CPU and skip the faulting instruction. */
        cpumask_set_cpu(cpu, &debug_err_mask);
index 2c425760451340b41a9d5748f5edf0e0bcbcaaf3..40cbca6d2aaa4f551356b7481d7b52fff601d829 100644 (file)
@@ -205,8 +205,8 @@ void migrate_irqs(void)
                raw_spin_unlock(&desc->lock);
 
                if (affinity_broken && printk_ratelimit())
-                       pr_warning("IRQ%u no longer affine to CPU%u\n", i,
-                               smp_processor_id());
+                       pr_warn("IRQ%u no longer affine to CPU%u\n",
+                               i, smp_processor_id());
        }
 
        local_irq_restore(flags);
index e6a6edbec6135de27cf0d6426185cec90654f6fc..101dbab3d6d87e26917d336b645a1b92c0b1f03d 100644 (file)
@@ -152,8 +152,8 @@ static int cpu_pmu_request_irq(struct arm_pmu *cpu_pmu, irq_handler_t handler)
                         * continue. Otherwise, continue without this interrupt.
                         */
                        if (irq_set_affinity(irq, cpumask_of(i)) && irqs > 1) {
-                               pr_warning("unable to set irq affinity (irq=%d, cpu=%u)\n",
-                                           irq, i);
+                               pr_warn("unable to set irq affinity (irq=%d, cpu=%u)\n",
+                                       irq, i);
                                continue;
                        }
 
index d19aea4385d9dc96db3f52f6628eab9af927910a..39c74a2c3df9c7370fe2ca9cf2b67ea6dd8985fd 100644 (file)
@@ -646,7 +646,7 @@ void smp_send_stop(void)
                udelay(1);
 
        if (num_online_cpus() > 1)
-               pr_warning("SMP: failed to stop secondary CPUs\n");
+               pr_warn("SMP: failed to stop secondary CPUs\n");
 }
 
 /*
index a61a1dfbb0db50ac44c1ca5a48ca7e71153e9b9b..cbb85c5fabf9376821f2769e78d94d4d5363174e 100644 (file)
@@ -157,7 +157,7 @@ static const struct unwind_idx *search_index(unsigned long addr,
        if (likely(start->addr_offset <= addr_prel31))
                return start;
        else {
-               pr_warning("unwind: Unknown symbol address %08lx\n", addr);
+               pr_warn("unwind: Unknown symbol address %08lx\n", addr);
                return NULL;
        }
 }
@@ -225,7 +225,7 @@ static unsigned long unwind_get_byte(struct unwind_ctrl_block *ctrl)
        unsigned long ret;
 
        if (ctrl->entries <= 0) {
-               pr_warning("unwind: Corrupt unwind table\n");
+               pr_warn("unwind: Corrupt unwind table\n");
                return 0;
        }
 
@@ -333,8 +333,8 @@ static int unwind_exec_insn(struct unwind_ctrl_block *ctrl)
                insn = (insn << 8) | unwind_get_byte(ctrl);
                mask = insn & 0x0fff;
                if (mask == 0) {
-                       pr_warning("unwind: 'Refuse to unwind' instruction %04lx\n",
-                                  insn);
+                       pr_warn("unwind: 'Refuse to unwind' instruction %04lx\n",
+                               insn);
                        return -URC_FAILURE;
                }
 
@@ -357,8 +357,8 @@ static int unwind_exec_insn(struct unwind_ctrl_block *ctrl)
                unsigned long mask = unwind_get_byte(ctrl);
 
                if (mask == 0 || mask & 0xf0) {
-                       pr_warning("unwind: Spare encoding %04lx\n",
-                              (insn << 8) | mask);
+                       pr_warn("unwind: Spare encoding %04lx\n",
+                               (insn << 8) | mask);
                        return -URC_FAILURE;
                }
 
@@ -370,7 +370,7 @@ static int unwind_exec_insn(struct unwind_ctrl_block *ctrl)
 
                ctrl->vrs[SP] += 0x204 + (uleb128 << 2);
        } else {
-               pr_warning("unwind: Unhandled instruction %02lx\n", insn);
+               pr_warn("unwind: Unhandled instruction %02lx\n", insn);
                return -URC_FAILURE;
        }
 
@@ -403,7 +403,7 @@ int unwind_frame(struct stackframe *frame)
 
        idx = unwind_find_idx(frame->pc);
        if (!idx) {
-               pr_warning("unwind: Index not found %08lx\n", frame->pc);
+               pr_warn("unwind: Index not found %08lx\n", frame->pc);
                return -URC_FAILURE;
        }
 
@@ -422,8 +422,8 @@ int unwind_frame(struct stackframe *frame)
                /* only personality routine 0 supported in the index */
                ctrl.insn = &idx->insn;
        else {
-               pr_warning("unwind: Unsupported personality routine %08lx in the index at %p\n",
-                          idx->insn, idx);
+               pr_warn("unwind: Unsupported personality routine %08lx in the index at %p\n",
+                       idx->insn, idx);
                return -URC_FAILURE;
        }
 
@@ -435,8 +435,8 @@ int unwind_frame(struct stackframe *frame)
                ctrl.byte = 1;
                ctrl.entries = 1 + ((*ctrl.insn & 0x00ff0000) >> 16);
        } else {
-               pr_warning("unwind: Unsupported personality routine %08lx at %p\n",
-                          *ctrl.insn, ctrl.insn);
+               pr_warn("unwind: Unsupported personality routine %08lx at %p\n",
+                       *ctrl.insn, ctrl.insn);
                return -URC_FAILURE;
        }
 
index c447ec70e8687ac1c4c02d00bd5597b66ce8f8dd..e7a81cebbb2eda6bac1c7d7283d8fff8d593dc54 100644 (file)
@@ -27,7 +27,7 @@ static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end,
        if (pud_none_or_clear_bad(pud) || (pud_val(*pud) & L_PGD_SWAPPER)) {
                pmd = pmd_alloc_one(&init_mm, addr);
                if (!pmd) {
-                       pr_warning("Failed to allocate identity pmd.\n");
+                       pr_warn("Failed to allocate identity pmd.\n");
                        return;
                }
                /*
index 8348ed6b2efe436e9ed138ce10b1f67b438453e5..9f98cec7fe1e1855dc5fcede8b0e24e88d09c3b3 100644 (file)
@@ -223,13 +223,13 @@ early_param("ecc", early_ecc);
 
 static int __init early_cachepolicy(char *p)
 {
-       pr_warning("cachepolicy kernel parameter not supported without cp15\n");
+       pr_warn("cachepolicy kernel parameter not supported without cp15\n");
 }
 early_param("cachepolicy", early_cachepolicy);
 
 static int __init noalign_setup(char *__unused)
 {
-       pr_warning("noalign kernel parameter not supported without cp15\n");
+       pr_warn("noalign kernel parameter not supported without cp15\n");
 }
 __setup("noalign", noalign_setup);