Messages in this thread | | | From | (Måns Rullgård) | Subject | Re: printk and long long | Date | Wed, 11 Feb 2004 21:32:51 +0100 |
| |
hpa@zytor.com (H. Peter Anvin) writes:
> Followup to: <Pine.LNX.4.44.0402111655170.17933-100000@gaia.cela.pl> > By author: Maciej Zenczykowski <maze@cela.pl> > In newsgroup: linux.dev.kernel >> >> On Wed, 11 Feb 2004, vda wrote: >> >> > The character L specifying that a following e, E, f, g, or G >> > conversion corresponds to a long double argument, or a following >> > d, i, o, u, x, or X conversion corresponds to a long long argument. >> > Note that long long is not specified in ANSI C and therefore >> > not portable to all architectures. >> >> [ personally I'd say screw the un-portable architectures ;) ] >> Long long is here to stay. > > long long is C99, so it's *definitely* here to say. The conversion specifier > is "ll" not "L", however.
What is the proper way to deal with printing an int64_t when int64_t can be either long or long long depending on machine?
-- Måns Rullgård mru@kth.se
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |