lkml.org 
[lkml]   [2013]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2013-02-20 23:22    [W:0.064 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site