On Thu, Oct 09, 2025 at 03:18:34PM +0800, Michael Chang via Grub-devel wrote:
> Add support for the 'z' length modifier in the printf code. This allows
> printing of size_t and ssize_t values using %zu, %zd and related
> formats. The parser maps 'z' to the correct integer width based on
> sizeof (size_t).
>
> Signed-off-by: Michael Chang <[email protected]>

Reviewed-by: Daniel Kiper <[email protected]>

But...

> ---
>  grub-core/kern/misc.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
> index 2b7922393..ff614add5 100644
> --- a/grub-core/kern/misc.c
> +++ b/grub-core/kern/misc.c
> @@ -26,6 +26,7 @@
>  #include <grub/i18n.h>
>  #include <grub/types.h>
>  #include <grub/charset.h>
> +#include <stddef.h>

Is this change really needed?

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to