Skip to content

Commit

Permalink
net/nfp: improve HW info header log readability
Browse files Browse the repository at this point in the history
[ upstream commit c18806818fb530d60003ea7da0b866fcdfe81e45 ]

Prepend `0x` to the NFP HWINFO header value that is printed to improve
the readability of the printed statement.

Fixes: c7e9729 ("net/nfp: support CPP")

Signed-off-by: James Hershaw <james.hershaw@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
  • Loading branch information
jamesroberthershaw authored and cpaelzer committed Nov 11, 2022
1 parent ab83bd4 commit 97045dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/nfp/nfpcore/nfp_hwinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ nfp_hwinfo_try_fetch(struct nfp_cpp *cpp, size_t *cpp_size)
goto exit_free;

header = (void *)db;
printf("NFP HWINFO header: %08x\n", *(uint32_t *)header);
printf("NFP HWINFO header: %#08x\n", *(uint32_t *)header);
if (nfp_hwinfo_is_updating(header))
goto exit_free;

Expand Down

0 comments on commit 97045dc

Please sign in to comment.