diff options
author | Tejas Prajapati <tpraja@codeaurora.org> | 2020-04-29 13:40:18 +0530 |
---|---|---|
committer | Nick Chung <nickchung@google.com> | 2020-06-17 00:48:23 +0800 |
commit | c3cba21c1b573505102ca52003f35313320781a7 (patch) | |
tree | d9bac47ab77ae306d027d91c6f458b28d6fa7ca0 | |
parent | 7d821b236241a001749d69333226eac06b361b03 (diff) | |
download | camera-kernel-c3cba21c1b573505102ca52003f35313320781a7.tar.gz |
msm: camera: utils: add spacing between register values
when using the cam_io_dump function to dump the register
values we are getting 4 register values without spacing
which makes is difficult to read, so adding space
between two specific register values.
Bug: 159088802
Test: GCA, CTS/ITS
CRs-Fixed: 2675959
Change-Id: I7e5db59398e406c30aa9729eb38331aa85736175
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
-rw-r--r-- | drivers/cam_utils/cam_io_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cam_utils/cam_io_util.c b/drivers/cam_utils/cam_io_util.c index 6a17227..f3ad622 100644 --- a/drivers/cam_utils/cam_io_util.c +++ b/drivers/cam_utils/cam_io_util.c @@ -271,8 +271,8 @@ int cam_io_dump(void __iomem *base_addr, uint32_t start_offset, int size) p_str += 11; } data = readl_relaxed(base_addr + REG_OFFSET(start_offset, i)); - snprintf(p_str, 9, "%08x ", data); - p_str += 8; + snprintf(p_str, 10, "%08x ", data); + p_str += 9; if ((i + 1) % NUM_REGISTER_PER_LINE == 0) { CAM_ERR(CAM_UTIL, "%s", line_str); line_str[0] = '\0'; |