Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3011175ybi; Mon, 17 Jun 2019 14:38:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0JCrNbAcLTWVSE71bYDdhXREu1dcNUD7hyqZkatz2ujFiIfCU4ek0i7JCynki2N18tqsP X-Received: by 2002:a17:902:820c:: with SMTP id x12mr13474730pln.216.1560807505845; Mon, 17 Jun 2019 14:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560807505; cv=none; d=google.com; s=arc-20160816; b=WtThxQROiMp2LPkg189U/JyrO7tbsMEFDBgrQosfHFdK3A4d51pk+Z2I7L+HwSyh92 kdSG+Ay6H9WhYsmLpAU3GHW6uNop74qqIwl5xQxGj5tFxen7j56pynOpY5iUyNGpwt7W 4/31RgKD27X3MeTwctCvkqARzTNpMCpO7HcncOOzAQ+XD4fCcjV6hRngOe6YrAXmphS8 QkffMMPhIGvgpvCC9qxFNcRM+Wb5C6wAwlXCdPbN8NyVO4DeKMmLK224g7Zbn1EFNW0z mXK1neFmFsa9uvV4ioI+XOJAfPzW1gYGd8MJHJ3KNJ2nqizmzjYq9VetwNyzenYE9hYS u59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hfD4HBkSDCDGpOVbDN/m9g/+wJrRqIcnyapXAlx927g=; b=PBmUqdR/bWDENJycjF/F74qaaE/4TtBHTFJTz+G57UhfkeeZazTBe6xuVjvmlfspzS u1Q8mMLROudqvzaVXI8KX5sB2Je9iEk0DBe+qVmnQqlpY2ikYBW3+hk2qDuEieJ1wVJa IHaIUbpt2xKZHWhgQbAfpw0m9B09d5LfF6Qdi3tYNy9Txu7JwDoheGmui4y97ce2ALDX AE4giZEaULEqPVKAmXIt0d4bUA32CNSIrhiWXUBz803U1SBcADisvrrTLtLt9XXzSiAE w5lm7TL7zqrlJdMB/Aokr6O0NKalt7ImUA0rzS1FqVknkQPwzTgOSecySBbv/k5dWzJZ yUfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GuI+gtlu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si11746244pgd.182.2019.06.17.14.38.10; Mon, 17 Jun 2019 14:38:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GuI+gtlu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729239AbfFQVU6 (ORCPT + 99 others); Mon, 17 Jun 2019 17:20:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:45354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbfFQVU5 (ORCPT ); Mon, 17 Jun 2019 17:20:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A635121019; Mon, 17 Jun 2019 21:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806456; bh=g7P1L7SKa2rzkL/jonQy9+CIUKP/zXnEziXf8WBo9aM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GuI+gtlu1oLmF1/oloqe/FcrFbgOog+1yPUv2ABhQZKuQTgjnCsl0p60Zdb68HZeU mdwcDgtpKJ8poMUewm1o2prLyFtZWoDY5W3ntIeBIhsphYclz+HPYSIPea9l7EBiFF c1er8GMsHnP6MqPDFI/H1MouGuogMyqO+kbrSc48= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luca Ceresoli , Nicolas Ferre , Andrew Lunn , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 059/115] net: macb: fix error format in dev_err() Date: Mon, 17 Jun 2019 23:09:19 +0200 Message-Id: <20190617210803.306492097@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617210759.929316339@linuxfoundation.org> References: <20190617210759.929316339@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f413cbb332a0b5251a790f396d0eb4ebcade5dec ] Errors are negative numbers. Using %u shows them as very large positive numbers such as 4294967277 that don't make sense. Use the %d format instead, and get a much nicer -19. Signed-off-by: Luca Ceresoli Fixes: b48e0bab142f ("net: macb: Migrate to devm clock interface") Fixes: 93b31f48b3ba ("net/macb: unify clock management") Fixes: 421d9df0628b ("net/macb: merge at91_ether driver into macb driver") Fixes: aead88bd0e99 ("net: ethernet: macb: Add support for rx_clk") Fixes: f5473d1d44e4 ("net: macb: Support clock management for tsu_clk") Acked-by: Nicolas Ferre Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/cadence/macb_main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index a6535e226d84..d005ed12b4d1 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -3377,7 +3377,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, if (!err) err = -ENODEV; - dev_err(&pdev->dev, "failed to get macb_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to get macb_clk (%d)\n", err); return err; } @@ -3386,7 +3386,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, if (!err) err = -ENODEV; - dev_err(&pdev->dev, "failed to get hclk (%u)\n", err); + dev_err(&pdev->dev, "failed to get hclk (%d)\n", err); return err; } @@ -3404,31 +3404,31 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, err = clk_prepare_enable(*pclk); if (err) { - dev_err(&pdev->dev, "failed to enable pclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable pclk (%d)\n", err); return err; } err = clk_prepare_enable(*hclk); if (err) { - dev_err(&pdev->dev, "failed to enable hclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable hclk (%d)\n", err); goto err_disable_pclk; } err = clk_prepare_enable(*tx_clk); if (err) { - dev_err(&pdev->dev, "failed to enable tx_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable tx_clk (%d)\n", err); goto err_disable_hclk; } err = clk_prepare_enable(*rx_clk); if (err) { - dev_err(&pdev->dev, "failed to enable rx_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable rx_clk (%d)\n", err); goto err_disable_txclk; } err = clk_prepare_enable(*tsu_clk); if (err) { - dev_err(&pdev->dev, "failed to enable tsu_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable tsu_clk (%d)\n", err); goto err_disable_rxclk; } @@ -3902,7 +3902,7 @@ static int at91ether_clk_init(struct platform_device *pdev, struct clk **pclk, err = clk_prepare_enable(*pclk); if (err) { - dev_err(&pdev->dev, "failed to enable pclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable pclk (%d)\n", err); return err; } -- 2.20.1