[Skiboot] [PATCH V4 3/9] include: Expand print conversion specificier macros

Nicholas Piggin npiggin at gmail.com
Wed Jun 21 14:29:13 AEST 2023


On Wed Jun 21, 2023 at 12:52 AM AEST, Christophe Lombard wrote:
> Add PRIxu macros into include inttypes file.
> These macros are required by the external library: libmctp.
>
> Signed-off-by: Christophe Lombard <clombard at linux.ibm.com>

Reviewed-by: Nicholas Piggin <npiggin at gmail.com>

> ---
>  include/inttypes.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/include/inttypes.h b/include/inttypes.h
> index 984c1f61..324385a1 100644
> --- a/include/inttypes.h
> +++ b/include/inttypes.h
> @@ -28,4 +28,10 @@
>  #define PRIx64 "llx"
>  #endif
>  
> +#define PRIu32 "u"
> +#define PRIx32 "x"
> +
> +#define PRIu16 "hu"
> +#define PRIx16 "hx"
> +
>  #endif
> -- 
> 2.40.1
>
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot



More information about the Skiboot mailing list