[PATCH] net/nfp: improve readability NFP HWINFO header
Niklas Söderlund
niklas.soderlund at corigine.com
Tue Sep 20 11:58:43 CEST 2022
Hi all,
Gentle ping.
On 2022-08-26 13:39:03 +0800, Chaoyong He wrote:
> From: James Hershaw <james.hershaw at corigine.com>
>
> Prepend `0x` to the NFP HWINFO header value that is printed to improve
> the readability of the printed statement.
>
> Signed-off-by: James Hershaw <james.hershaw at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
> ---
> drivers/net/nfp/nfpcore/nfp_hwinfo.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.c b/drivers/net/nfp/nfpcore/nfp_hwinfo.c
> index c0516bf..9f848bd 100644
> --- a/drivers/net/nfp/nfpcore/nfp_hwinfo.c
> +++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.c
> @@ -108,7 +108,7 @@
> 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;
>
> --
> 1.8.3.1
>
--
Kind Regards,
Niklas Söderlund
More information about the dev
mailing list