Skip to content

Commit

Permalink
samples/rpmsg: Replace print_hex_dump() with print_hex_dump_debug()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
  • Loading branch information
sumananna authored and andersson committed Aug 27, 2019
1 parent 5f9e832 commit 2519fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/rpmsg/rpmsg_client_sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len,
dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n",
++idata->rx_count, src);

print_hex_dump(KERN_DEBUG, __func__, DUMP_PREFIX_NONE, 16, 1,
data, len, true);
print_hex_dump_debug(__func__, DUMP_PREFIX_NONE, 16, 1, data, len,
true);

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

0 comments on commit 2519fbb

Please sign in to comment.