[EMAIL PROTECTED] (Linus Torvalds) wrote on 23.03.01 in
<[EMAIL PROTECTED]>:
> On Thu, 22 Mar 2001, Justin T. Gibbs wrote:
> >
> > aic7xxx_proc.c:
> > Use an unsigned long for total number of commands
> > sent to a device. %q and %lld don't seem to work
> > under Linux or I'd have used a uint64_t.
>
> It's "%Ld".
>
> Think ANSI "long long double" -> "Lf".
>
> Thus "long long int" -> "Ld".
>
> I know it's at least been discussed for ANSI C9X, although I have no idea
> if it actually caught on.
It went the other way:
ISO/IEC 9899:1999 (E) +ISO/IEC:
7 The length modifiers and their meanings are:
hh Specifies that a following d, i, o, u, x,or X conversion specifier
applies to a signed char or unsigned char argument (the argument will have
been promoted according to the integer promotions, but its value shall be
converted to signed char or unsigned char before printing); or that a
following n conversion specifier applies to a pointer to a signed char
argument.
h Specifies that a following d, i, o, u, x,orX conversion specifier
applies to a short int or unsigned short int argument (the argument will
have been promoted according to the integer promotions, but its value
shall be converted to short int or unsigned short int before printing); or
that a following n conversion specifier applies to a pointer to a short
int argument.
l (ell) Specifies that a following d, i, o, u, x,orX conversion specifier
applies to a long int or unsigned long int argument; that a following n
conversion specifier applies to a pointer to a long int argument; that a
following c conversion specifier applies to a wint_t argument; that a
following s conversion specifier applies to a pointer to a wchar_t
argument; or has no effect on a following a, A, e, E, f, F, g, or G
conversion specifier.
ll (ell-ell) Specifies that a following d, i, o, u, x,orX conversion
specifier applies to a long long int or unsigned long long int argument;
or that a following n conversion specifier applies to a pointer to a long
long int argument.
j Specifies that a following d, i, o, u, x,orX conversion specifier
applies to an intmax_t or uintmax_t argument; or that a following n
conversion specifier applies to a pointer to an intmax_t argument.
z Specifies that a following d, i, o, u, x,orX conversion specifier
applies to a size_t or the corresponding signed integer type argument; or
that a following n conversion specifier applies to a pointer to a signed
integer type corresponding to size_t argument.
t Specifies that a following d, i, o, u, x,orX conversion specifier
applies to a ptrdiff_t or the corresponding unsigned integer type
argument; or that a following n conversion specifier applies to a pointer
to a ptrdiff_t argument.
L Specifies that a following a, A, e, E, f, F, g,orG conversion specifier applies to a
long double argument. If a length modifier appears with any conversion specifier other
than as specified above, the behavior is undefined.
MfG Kai
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/