lkml.org 
[lkml]   [2012]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[TRIVIAL PATCH 18/26] drivers: base: Convert print_symbol to %pSR
    Date
    Use the new vsprintf extension to avoid any possible
    message interleaving.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/base/core.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/base/core.c b/drivers/base/core.c
    index a235085..95159e1 100644
    --- a/drivers/base/core.c
    +++ b/drivers/base/core.c
    @@ -97,8 +97,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
    if (dev_attr->show)
    ret = dev_attr->show(dev, dev_attr, buf);
    if (ret >= (ssize_t)PAGE_SIZE) {
    - print_symbol("dev_attr_show: %s returned bad count\n",
    - (unsigned long)dev_attr->show);
    + printk("dev_attr_show: %pSR returned bad count\n",
    + dev_attr->show);
    }
    return ret;
    }
    --
    1.7.8.112.g3fd21


    \
     
     \ /
      Last update: 2012-12-12 20:01    [W:3.487 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site