[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] mini-os: enable compiler check for printk format types
>>> On 06.08.14 at 18:29, <andrew.cooper3@xxxxxxxxxx> wrote: > On 06/08/2014 10:44, Thomas Leonard wrote: >> @@ -1421,7 +1421,7 @@ void sparse(unsigned long data, size_t size) >> mfns[i] = virtual_to_mfn(data + i * PAGE_SIZE); >> } >> >> - printk("sparsing %ldMB at %lx\n", size >> 20, data); >> + printk("sparsing %ldMB at %lx\n", (long) size >> 20, data); > > %zu is the correct format for a size_t. If only mini-os'es vsnprintf() supported 'z' - interestingly vsscanf() does, but vsnprintf() only knows about 'Z' right now. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |