OSDN Git Service

nfc: pn533: use dev_err() instead of pr_err()
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 13 Sep 2021 13:20:26 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 13:38:00 +0000 (14:38 +0100)
Print error message with reference to a device.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/pn533.c

index c5f127f..da18033 100644 (file)
@@ -2171,7 +2171,7 @@ void pn533_recv_frame(struct pn533 *dev, struct sk_buff *skb, int status)
        }
 
        if (skb == NULL) {
-               pr_err("NULL Frame -> link is dead\n");
+               dev_err(dev->dev, "NULL Frame -> link is dead\n");
                goto sched_wq;
        }