lkml.org 
[lkml]   [2011]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/28] file: Use current logging style
    Date
    Add and use pr_fmt and pr_<level>
    Now prefixed a single message with "file: " and
    changed an embedded function name to "%s: ", __func__.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    fs/file.c | 4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)

    diff --git a/fs/file.c b/fs/file.c
    index 4c6992d..a88b110 100644
    --- a/fs/file.c
    +++ b/fs/file.c
    @@ -6,6 +6,8 @@
    * Manage the dynamic fd arrays in the process files_struct.
    */

    +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
    +
    #include <linux/module.h>
    #include <linux/fs.h>
    #include <linux/mm.h>
    @@ -469,7 +471,7 @@ repeat:
    #if 1
    /* Sanity check */
    if (rcu_dereference_raw(fdt->fd[fd]) != NULL) {
    - printk(KERN_WARNING "alloc_fd: slot %d not NULL!\n", fd);
    + pr_warn("%s: slot %d not NULL!\n", __func__, fd);
    rcu_assign_pointer(fdt->fd[fd], NULL);
    }
    #endif
    --
    1.7.6.405.gc1be0


    \
     
     \ /
      Last update: 2011-11-30 03:19    [W:0.021 / U:0.436 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site