powerpc/powernv: Remove "opal" prefix from pr_xxx()s
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jan 2015 04:10:33 +0000 (15:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jan 2015 04:10:33 +0000 (15:10 +1100)
In commit c8742f85125d "powerpc/powernv: Expose OPAL firmware symbol
map" I added pr_fmt() to opal.c. This left some existing pr_xxx()s with
duplicate "opal" prefixes, eg:

    opal: opal: Found 0 interrupts reserved for OPAL

Fix them all up. Also make the "Not not found" message a bit more
verbose.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c

index 1db119f0f4ee54b6455845d7e5cd3e1229806e06..8f5bbfae9c32bcfeb467d000625b9ff30e7ff986 100644 (file)
@@ -208,7 +208,7 @@ static int __init opal_register_exception_handlers(void)
         * start catching/handling HMI directly in Linux.
         */
        if (!opal_check_token(OPAL_HANDLE_HMI)) {
-               pr_info("opal: Old firmware detected, OPAL handles HMIs.\n");
+               pr_info("Old firmware detected, OPAL handles HMIs.\n");
                opal_register_exception_handler(
                                OPAL_HYPERVISOR_MAINTENANCE_HANDLER,
                                0, glue);
@@ -709,7 +709,7 @@ static int __init opal_init(void)
 
        opal_node = of_find_node_by_path("/ibm,opal");
        if (!opal_node) {
-               pr_warn("opal: Node not found\n");
+               pr_warn("Device node not found\n");
                return -ENODEV;
        }
 
@@ -732,7 +732,7 @@ static int __init opal_init(void)
 
        /* Find all OPAL interrupts and request them */
        irqs = of_get_property(opal_node, "opal-interrupts", &irqlen);
-       pr_debug("opal: Found %d interrupts reserved for OPAL\n",
+       pr_debug("Found %d interrupts reserved for OPAL\n",
                 irqs ? (irqlen / 4) : 0);
        opal_irq_count = irqlen / 4;
        opal_irqs = kzalloc(opal_irq_count * sizeof(unsigned int), GFP_KERNEL);
@@ -740,13 +740,13 @@ static int __init opal_init(void)
                unsigned int hwirq = be32_to_cpup(irqs);
                unsigned int irq = irq_create_mapping(NULL, hwirq);
                if (irq == NO_IRQ) {
-                       pr_warning("opal: Failed to map irq 0x%x\n", hwirq);
+                       pr_warning("Failed to map irq 0x%x\n", hwirq);
                        continue;
                }
                rc = request_irq(irq, opal_interrupt, 0, "opal", NULL);
                if (rc)
-                       pr_warning("opal: Error %d requesting irq %d"
-                                  " (0x%x)\n", rc, irq, hwirq);
+                       pr_warning("Error %d requesting irq %d (0x%x)\n",
+                                   rc, irq, hwirq);
                opal_irqs[i] = irq;
        }