Re: [RESEND PATCH] x86/tools/relocs: add __printf attribute to die()

From: Borislav Petkov
Date: Fri Jun 25 2021 - 12:53:20 EST


On Fri, Jun 25, 2021 at 09:19:38AM -0700, H. Peter Anvin wrote:
> You can use PRIu32/64 or cast to unsigned long long; it's not like the
> performance for this case is going to matter one iota.

Why "unsigned long long"?

Those fields are typedeffed as:

typedef __u32 Elf32_Off;

or

typedef __u64 Elf64_Off;

respectively so they should fit in an "unsigned long" on the respective
width.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette