All of lore.kernel.org
 help / color / mirror / Atom feed
* size_t and printk and Xen
@ 2008-10-11 14:05 Dan Magenheimer
  2008-10-12  9:22 ` Keir Fraser
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Magenheimer @ 2008-10-11 14:05 UTC (permalink / raw)
  To: Xen-Devel (E-mail)

I am adding code in Xen that printk's a size_t and find that
I can't write code (short of ifdef'ing) that compiles on
both 32-bit and 64-bit because size_t is typedef'd in Xen as an
unsigned long.  C.f.

http://www.velocityreviews.com/forums/t438359-portable-way-to-printf-a-sizet-instance.html

It appears that the %z format is understood by Xen printk.

Is the typedef historical and should be removed?  Or is it
necessary for some (older?) compilers?

If it is not going to be removed, is there a workaround
(other than ifdef'ing)?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-13 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11 14:05 size_t and printk and Xen Dan Magenheimer
2008-10-12  9:22 ` Keir Fraser
2008-10-12  9:41   ` Keir Fraser
2008-10-12 17:44     ` Dan Magenheimer
2008-10-12 17:57       ` Keir Fraser
2008-10-12 18:12         ` Dan Magenheimer
2008-10-13 10:02           ` Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.