Message ID | 20200915144522.509493-18-seanga2@gmail.com |
---|---|
State | Accepted |
Commit | 0851bd1e75bcd237b08a9316e8cb74a8ee1639a0 |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ojgQKKLm; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BrR2c69YHz9sTt for <incoming@patchwork.ozlabs.org>; Wed, 16 Sep 2020 00:49:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 00D3A8239B; Tue, 15 Sep 2020 16:46:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ojgQKKLm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F028282383; Tue, 15 Sep 2020 16:45:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 707788236F for <u-boot@lists.denx.de>; Tue, 15 Sep 2020 16:45:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x743.google.com with SMTP id 16so4462211qkf.4 for <u-boot@lists.denx.de>; Tue, 15 Sep 2020 07:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fe1OSubMDxJkvjkZ6jflJbbELMggfATxnq9NnCqd/LU=; b=ojgQKKLm6odr7DtruLRyEcysVKLu2p2SU/fRT330CCuBEtyKhFgcwEFUiBaKuv2mOV E+5yPMjVXPjv2LwRXSoLkyPJ28vgkGfTkM38ahXqKx8vCXmH8jR3/f7Rp+bmaFZ6y9dL Fog4MUd2ntCG4t62kPFcirDEgyqn6axDJfwudUBTYha7Yj6NUFhk8Xj1+rg3/8M/BBK0 P3NlzEZLTxn2qZl6CT3YxmtJ/HxPGqqbgbG3XcHt5ssy9McIt6Qmnctkbk4f0UNNjKrm 9v5PKjb/Xlmo/0l9hA87AlMklweKRBIr6gUDX9oV4Gtz4xrAstWDD1mFY+5iA6SU737n CPlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fe1OSubMDxJkvjkZ6jflJbbELMggfATxnq9NnCqd/LU=; b=oug+3iffFjJlRZtXrv03Kz8IRMjEnm+NWuibpEmFqQUjT+ZTM+kzqbTwhE0Cqa704T wF4GDK/NXNaPNoinVIP4CNQa1YOD7SO4/ktnV4MqvXVPPgceCQApRPzZjrlkkeTVWZsC p8PyNpm1iVsk0VMlsguPd1HIzgzr9NH4LiRrWcQHu7Y43fSBYbv1vSn8ao4HeEVOWEfG 87At2h7hVp++qUZTMPy84HZLFPBV08hAuowwkUvAxNK8+rD1l4upc0MiZTZtdIKL84Xo ImCZH/sejE7i6bnsNPhY1u7jgkv09M6EzJ5wbViePl9cUWYRY1MUk6ANLOCm2nfH2Ibp DnBQ== X-Gm-Message-State: AOAM5327esNJRD4zWfsiRSXavVljA3WIeFrvMYkBpDAZNdQKmneK9w4l heg8HEsOPenALwz1aZ5RRi5tlS+FnEZoK08h X-Google-Smtp-Source: ABdhPJzBt2IMZr7RkCWRIWUXJQNSAyJIhaQwHEuQN7PHrHy0IXU0n4MM0FT+7nq0NcUNg1nCovQ9kA== X-Received: by 2002:a37:a80e:: with SMTP id r14mr18854979qke.85.1600181155078; Tue, 15 Sep 2020 07:45:55 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id g18sm16371799qko.126.2020.09.15.07.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 07:45:54 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Sean Anderson <seanga2@gmail.com>, Alex Marginean <alexm.osslist@gmail.com>, Joe Hershberger <joe.hershberger@ni.com> Subject: [PATCH v2 17/46] net: mdio: Fix not calling dev_dbg with a device Date: Tue, 15 Sep 2020 10:44:53 -0400 Message-Id: <20200915144522.509493-18-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915144522.509493-1-seanga2@gmail.com> References: <20200915144522.509493-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Print device name in dev_xxx like Linux
|
expand
|
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 66ee2e1976..b5e8e46512 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -145,7 +145,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, break; if (!ofnode_valid(phandle.node)) { - dev_dbg(dev, "can't find PHY node\n"); + dev_dbg(ethdev, "can't find PHY node\n"); return NULL; } @@ -161,7 +161,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, if (uclass_get_device_by_ofnode(UCLASS_MDIO, ofnode_get_parent(phandle.node), &mdiodev)) { - dev_dbg(dev, "can't find MDIO bus for node %s\n", + dev_dbg(ethdev, "can't find MDIO bus for node %s\n", ofnode_get_name(ofnode_get_parent(phandle.node))); return NULL; }
The name of the device we are working on is `ethdev` and not just `dev`. Signed-off-by: Sean Anderson <seanga2@gmail.com> --- (no changes since v1) net/mdio-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)