lkml.org 
[lkml]   [2019]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 1/7] drivers: thermal: of-thermal: Print name of device node with error
    Date
    Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
    ---
    drivers/thermal/of-thermal.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
    index 4bfdb4a1e47d..5ca2a6b370ea 100644
    --- a/drivers/thermal/of-thermal.c
    +++ b/drivers/thermal/of-thermal.c
    @@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np)

    ret = of_property_read_u32(np, "polling-delay-passive", &prop);
    if (ret < 0) {
    - pr_err("missing polling-delay-passive property\n");
    + pr_err("%s: missing polling-delay-passive property\n", np->name);
    goto free_tz;
    }
    tz->passive_delay = prop;

    ret = of_property_read_u32(np, "polling-delay", &prop);
    if (ret < 0) {
    - pr_err("missing polling-delay property\n");
    + pr_err("%s: missing polling-delay property\n", np->name);
    goto free_tz;
    }
    tz->polling_delay = prop;
    --
    2.17.1
    \
     
     \ /
      Last update: 2019-01-10 01:02    [W:3.455 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site