lkml.org 
[lkml]   [2017]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/10] gpio: mockup: improve the error message
    Date
    Indicate the error number and make the message a bit more elaborate.

    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    ---
    drivers/gpio/gpio-mockup.c | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
    index 3ffc3ce..96a6c6e 100644
    --- a/drivers/gpio/gpio-mockup.c
    +++ b/drivers/gpio/gpio-mockup.c
    @@ -385,8 +385,9 @@ static int gpio_mockup_probe(struct platform_device *pdev)
    }

    if (ret) {
    - dev_err(dev, "gpio<%d..%d> add failed\n",
    - base, base < 0 ? ngpio : base + ngpio);
    + dev_err(dev,
    + "adding gpiochip failed: %d (base: %d, ngpio: %d)\n",
    + ret, base, base < 0 ? ngpio : base + ngpio);

    return ret;
    }
    --
    2.9.3
    \
     
     \ /
      Last update: 2017-05-25 10:36    [W:2.210 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site