]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drivers: ipa: print dev_err info accurately
authorWang Wenhu <wenhu.wang@vivo.com>
Mon, 25 May 2020 06:29:51 +0000 (23:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 01:03:56 +0000 (18:03 -0700)
Print certain name string instead of hard-coded "memory" for dev_err
output, which would be more accurate and helpful for debugging.

Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
Cc: Alex Elder <elder@kernel.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_clock.c

index 374491ea11cfd990f6b5fd7a207e509f4c3b7a5d..c5204fd58ac4b3e1eb6d918fedbbab5c4267c823 100644 (file)
@@ -66,8 +66,8 @@ ipa_interconnect_init_one(struct device *dev, const char *name)
 
        path = of_icc_get(dev, name);
        if (IS_ERR(path))
-               dev_err(dev, "error %ld getting memory interconnect\n",
-                       PTR_ERR(path));
+               dev_err(dev, "error %ld getting %s interconnect\n",
+                       PTR_ERR(path), name);
 
        return path;
 }