Messages in this thread | | | Date | Thu, 21 Feb 2013 08:08:28 +1100 | From | Stephen Rothwell <> | Subject | Re: [PATCH] block/partitions/efi.c: ensure that the GPT header is at least the size of the structure. |
| |
Hi Peter,
On Wed, 20 Feb 2013 09:37:01 -0500 Peter Jones <pjones@redhat.com> wrote: > > + /* Check the GUID Partition Table header size is too small */ > + if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) { > + pr_debug("GUID Partition Table Header size is too small: %u < %lu\n", > + le32_to_cpu((*gpt)->header_size), > + (unsigned long)sizeof(gpt_header));
Don't do this. We have %zu to print size_t variables ...
-- Cheers, Stephen Rothwell sfr@canb.auug.org.au [unhandled content-type:application/pgp-signature] | |