From: kaih@khms.westfalen.de (Kai Henningsen)
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Version 6.1.8 of the aic7xxx driver availalbe
Date: 25 Mar 2001 13:44:00 +0200 [thread overview]
Message-ID: <7yXNer9Xw-B@khms.westfalen.de> (raw)
In-Reply-To: <Pine.LNX.4.31.0103231159300.766-100000@penguin.transmeta.com>
In-Reply-To: <Pine.LNX.4.31.0103231159300.766-100000@penguin.transmeta.com>
torvalds@transmeta.com (Linus Torvalds) wrote on 23.03.01 in <Pine.LNX.4.31.0103231159300.766-100000@penguin.transmeta.com>:
> 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
prev parent reply other threads:[~2001-03-25 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-23 1:30 Justin T. Gibbs
2001-03-23 20:14 ` Linus Torvalds
2001-03-25 11:44 ` Kai Henningsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7yXNer9Xw-B@khms.westfalen.de \
--to=kaih@khms.westfalen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®