Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2519fbb

Browse files
sumanannaandersson
authored andcommitted
samples/rpmsg: Replace print_hex_dump() with print_hex_dump_debug()
Replace the raw print_hex_dump() call in the rpmsg_sample_cb() function with the equivalent print_hex_dump_debug() better suited for dynamic debug. This switch allows flexibility of controlling this trace through dynamic debug when enabled. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent 5f9e832 commit 2519fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/rpmsg/rpmsg_client_sample.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len,
2929
dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n",
3030
++idata->rx_count, src);
3131

32-
print_hex_dump(KERN_DEBUG, __func__, DUMP_PREFIX_NONE, 16, 1,
33-
data, len, true);
32+
print_hex_dump_debug(__func__, DUMP_PREFIX_NONE, 16, 1, data, len,
33+
true);
3434

3535
/* samples should not live forever */
3636
if (idata->rx_count >= MSG_LIMIT) {

0 commit comments

Comments
 (0)