staging:octeon: Replace pr_warning by preferred pr_warn
authorHimangi Saraogi <himangi774@gmail.com>
Mon, 3 Mar 2014 01:03:54 +0000 (06:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 21:52:23 +0000 (13:52 -0800)
This patch fixes the checkpatch.pl warning :
Prefer pr_warn(... to pr_warning(...

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mem.c

index 55c1348..bf666b0 100644 (file)
@@ -80,10 +80,10 @@ static void cvm_oct_free_hw_skbuff(int pool, int size, int elements)
        } while (memory);
 
        if (elements < 0)
-               pr_warning("Freeing of pool %u had too many skbuffs (%d)\n",
+               pr_warn("Freeing of pool %u had too many skbuffs (%d)\n",
                     pool, elements);
        else if (elements > 0)
-               pr_warning("Freeing of pool %u is missing %d skbuffs\n",
+               pr_warn("Freeing of pool %u is missing %d skbuffs\n",
                       pool, elements);
 }
 
@@ -114,7 +114,7 @@ static int cvm_oct_fill_hw_memory(int pool, int size, int elements)
                 */
                memory = kmalloc(size + 256, GFP_ATOMIC);
                if (unlikely(memory == NULL)) {
-                       pr_warning("Unable to allocate %u bytes for FPA pool %d\n",
+                       pr_warn("Unable to allocate %u bytes for FPA pool %d\n",
                                   elements * size, pool);
                        break;
                }
@@ -147,10 +147,10 @@ static void cvm_oct_free_hw_memory(int pool, int size, int elements)
        } while (fpa);
 
        if (elements < 0)
-               pr_warning("Freeing of pool %u had too many buffers (%d)\n",
+               pr_warn("Freeing of pool %u had too many buffers (%d)\n",
                        pool, elements);
        else if (elements > 0)
-               pr_warning("Warning: Freeing of pool %u is missing %d buffers\n",
+               pr_warn("Warning: Freeing of pool %u is missing %d buffers\n",
                        pool, elements);
 }