lkml.org 
[lkml]   [2019]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 06/32] mtd: spi-nor: Use dev_err() instead of pr_err()
    Date
    From: Tudor Ambarus <tudor.ambarus@microchip.com>

    Print identifying information about struct device.

    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    ---
    drivers/mtd/spi-nor/spi-nor.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
    index e801f390728c..c794eff69fe9 100644
    --- a/drivers/mtd/spi-nor/spi-nor.c
    +++ b/drivers/mtd/spi-nor/spi-nor.c
    @@ -448,7 +448,7 @@ static int spi_nor_read_sr(struct spi_nor *nor)
    }

    if (ret) {
    - pr_err("error %d reading SR\n", ret);
    + dev_err(nor->dev, "error %d reading SR\n", ret);
    return ret;
    }

    @@ -478,7 +478,7 @@ static int spi_nor_read_fsr(struct spi_nor *nor)
    }

    if (ret) {
    - pr_err("error %d reading FSR\n", ret);
    + dev_err(nor->dev, "error %d reading FSR\n", ret);
    return ret;
    }

    --
    2.9.5
    \
     
     \ /
      Last update: 2019-10-29 12:19    [W:4.148 / U:1.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site