[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] size_t and printk and Xen



> On 12/10/08 10:22, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote:
> 
> >> 
> >> Is the typedef historical and should be removed?  Or is it
> >> necessary for some (older?) compilers?
> > 
> > Removing it would break the build, I think.
> 
> I'm no particular fan of size_t in hypervisor interfaces 
> though. So, for
> example, switching xmalloc() interfaces to use unsigned int 
> instead would be
> fine by me, and this would sidestep the issue perhaps?

I think C99 size_t may have compile-time type-checking uses so
I'd be hesitant to remove it entirely.  I do suspect the typedef
pre-dates the addition to Xen of a more modern printk, but
I suppose we have bigger fish to fry and using %lu in the
printk format string and an unsigned-long cast in the argument
list is annoying but works.

Dan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.