Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d7f646d authored by Jordan Crouse's avatar Jordan Crouse
Browse files

usb: phy: snps: Fix printk format compiler warnings



Fix two printk strings that were incorrectly exposing a kernel
address with %x.

Change-Id: Ic0dedbadc918cc60365772bd2628a20167d08228
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent b30b14e3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -400,7 +400,7 @@ static int msm_hsphy_init(struct usb_phy *uphy)
	if (phy->phy_rcal_reg) {
		rcal_code = readl_relaxed(phy->phy_rcal_reg) & phy->rcal_mask;

		dev_dbg(uphy->dev, "rcal_mask:%08x reg:%08x code:%08x\n",
		dev_dbg(uphy->dev, "rcal_mask:%08x reg:%pK code:%08x\n",
				phy->rcal_mask, phy->phy_rcal_reg, rcal_code);
	}

@@ -653,7 +653,7 @@ static int msm_hsphy_probe(struct platform_device *pdev)
			dev_err(dev, "unable to read phy rcal mask\n");
			phy->phy_rcal_reg = NULL;
		}
		dev_dbg(dev, "rcal_mask:%08x reg:%08x\n", phy->rcal_mask,
		dev_dbg(dev, "rcal_mask:%08x reg:%pK\n", phy->rcal_mask,
				phy->phy_rcal_reg);
	}