From 535559a22186ed0cf9269402170446cf5506d940 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Tue, 31 May 2022 19:38:42 -0700 Subject: [PATCH] input: misc: qcom-hv-haptics: Fix print format identifier Print in hex when a read/write to an address fails. Change-Id: I35dddaa33d18f72079ec3d814a36fd304cd0f331 Signed-off-by: Subbaraman Narayanamurthy --- drivers/input/misc/qcom-hv-haptics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index 57b929b27c03..0948a30c7577 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -702,7 +702,7 @@ static int haptics_read(struct haptics_chip *chip, rc = regmap_bulk_read(chip->regmap, addr, val, length); if (rc < 0) - dev_err(chip->dev, "read addr %d failed, rc=%d\n", addr, rc); + dev_err(chip->dev, "read addr %#x failed, rc=%d\n", addr, rc); return rc; } @@ -715,7 +715,7 @@ static int haptics_write(struct haptics_chip *chip, rc = regmap_bulk_write(chip->regmap, addr, val, length); if (rc < 0) - dev_err(chip->dev, "write addr %d failed, rc=%d\n", addr, rc); + dev_err(chip->dev, "write addr %#x failed, rc=%d\n", addr, rc); return rc; } @@ -728,7 +728,7 @@ static int haptics_masked_write(struct haptics_chip *chip, regmap_update_bits(chip->regmap, addr, mask, val); if (rc < 0) - dev_err(chip->dev, "update addr %d failed, rc=%d\n", addr, rc); + dev_err(chip->dev, "update addr %#x failed, rc=%d\n", addr, rc); return rc; }