diff mbox series

[v1] soc: qcom: smem: use %*ph to print small buffer

Message ID 20200730153220.39466-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit 1b3df368914b5e1783a9192b32418b24b7a721e5
Headers show
Series [v1] soc: qcom: smem: use %*ph to print small buffer | expand

Commit Message

Andy Shevchenko July 30, 2020, 3:32 p.m. UTC
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(-)

Comments

Andy Shevchenko Dec. 28, 2020, 8:04 p.m. UTC | #1
On Tue, Oct 27, 2020 at 08:30:22PM +0200, Andy Shevchenko wrote:
> On Thu, Jul 30, 2020 at 06:32:20PM +0300, Andy Shevchenko wrote:
> > Use %*ph format to print small buffer as hex string.
> 
> Any comments?

Anybody alive here?
Bjorn Andersson Dec. 28, 2020, 8:15 p.m. UTC | #2
On Mon 28 Dec 14:04 CST 2020, Andy Shevchenko wrote:

> On Tue, Oct 27, 2020 at 08:30:22PM +0200, Andy Shevchenko wrote:
> > On Thu, Jul 30, 2020 at 06:32:20PM +0300, Andy Shevchenko wrote:
> > > Use %*ph format to print small buffer as hex string.
> > 
> > Any comments?
> 
> Anybody alive here?
> 

I have no idea why I've been missing this...twice, sorry about that and
thanks for the ping! I've picked it up for v5.12 now.

Regards,
Bjorn

> -- 
> With Best Regards,
> Andy Shevchenko
> 
>
patchwork-bot+linux-arm-msm@kernel.org Jan. 4, 2021, 4:40 a.m. UTC | #3
Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Thu, 30 Jul 2020 18:32:20 +0300 you wrote:
> 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(-)

Here is the summary with links:
  - [v1] soc: qcom: smem: use %*ph to print small buffer
    https://git.kernel.org/qcom/c/1b3df368914b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

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;
 	}