From: Krzysztof Kozlowski Date: Thu, 26 Feb 2026 20:35:27 +0000 (+0100) Subject: memory: tegra-mc: Use %pe format X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2413283fac5b2975f5ead6a1dcac7d5c6f7366d8;p=thirdparty%2Fkernel%2Flinux.git memory: tegra-mc: Use %pe format Make code printing pointer error value a bit simpler and fix coccinelle suggestion: tegra/mc.c:975:4-11: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Krzysztof Kozlowski Acked-by: Thierry Reding Link: https://patch.msgid.link/20260226-memory-simplify-v1-4-ccb94f378628@oss.qualcomm.com Signed-off-by: Krzysztof Kozlowski --- diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c index 1dc516a5be149..67a0b0c077128 100644 --- a/drivers/memory/tegra/mc.c +++ b/drivers/memory/tegra/mc.c @@ -962,8 +962,7 @@ static int tegra_mc_probe(struct platform_device *pdev) if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU) && mc->soc->smmu) { mc->smmu = tegra_smmu_probe(&pdev->dev, mc->soc->smmu, mc); if (IS_ERR(mc->smmu)) { - dev_err(&pdev->dev, "failed to probe SMMU: %ld\n", - PTR_ERR(mc->smmu)); + dev_err(&pdev->dev, "failed to probe SMMU: %pe\n", mc->smmu); mc->smmu = NULL; } }