Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH v1] soc: qcom: smem: use %*ph to print small buffer
@ 2020-07-30 15:32 Andy Shevchenko
       [not found] ` <20201027183022.GJ4077@smile.fi.intel.com>
  2021-01-04  4:40 ` patchwork-bot+linux-arm-msm
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-07-30 15:32 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, linux-arm-msm, Imran Khan; +Cc: Andy Shevchenko

Use %*ph format to print small buffer as hex string.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/soc/qcom/smem.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c
index 28c19bcb2f20..8e66003f3e81 100644
--- a/drivers/soc/qcom/smem.c
+++ b/drivers/soc/qcom/smem.c
@@ -731,9 +731,7 @@ qcom_smem_partition_header(struct qcom_smem *smem,
 	header = smem->regions[0].virt_base + le32_to_cpu(entry->offset);
 
 	if (memcmp(header->magic, SMEM_PART_MAGIC, sizeof(header->magic))) {
-		dev_err(smem->dev, "bad partition magic %02x %02x %02x %02x\n",
-			header->magic[0], header->magic[1],
-			header->magic[2], header->magic[3]);
+		dev_err(smem->dev, "bad partition magic %4ph\n", header->magic);
 		return NULL;
 	}
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-04  4:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-30 15:32 [PATCH v1] soc: qcom: smem: use %*ph to print small buffer Andy Shevchenko
     [not found] ` <20201027183022.GJ4077@smile.fi.intel.com>
2020-12-28 20:04   ` Andy Shevchenko
2020-12-28 20:15     ` Bjorn Andersson
2021-01-04  4:40 ` patchwork-bot+linux-arm-msm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox