From 6e9760c26f91fa06e61440cb23566ebccc291730 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 20 Jan 2021 18:58:34 -0800 Subject: [PATCH] mhi: core: Fix format specifier in mhi_alloc_bhie_table BHIe table size is printed incorrectly as unsigned long. size is of type size_t hence use %zu instead of %lu. Change-Id: Ic52bc6ea92e6dac8bd1e275f9a17986d08e2da79 Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/mhi_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/mhi/core/mhi_boot.c b/drivers/bus/mhi/core/mhi_boot.c index 41c44124310c..c86270e55897 100644 --- a/drivers/bus/mhi/core/mhi_boot.c +++ b/drivers/bus/mhi/core/mhi_boot.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. */ +/* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. */ #include #include @@ -524,7 +524,7 @@ int mhi_alloc_bhie_table(struct mhi_controller *mhi_cntrl, if (!mhi_buf->buf) goto error_alloc_segment; - MHI_CNTRL_LOG("Entry:%d Address:0x%llx size:%lu\n", i, + MHI_CNTRL_LOG("Entry:%d Address:0x%llx size:%zu\n", i, mhi_buf->dma_addr, mhi_buf->len); }