On Mon, Oct 13, 2025 at 01:29:13PM +0200, Daniel Kiper wrote:
> 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?

Yes, it is necessary for the "size_t" type.

Thanks,
Michael

> 
> Daniel

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

Reply via email to