On Wed, 12 Mar 2003, Stas Sergeev wrote:
> Bart Oldeman wrote:
> > it's a multiplication that overflows from an int -- try this patch:
> The attached one might also be
> necessary to get the correct
> output.
- warn ("Linux kernel %d.%d.%d; CPU speed is %Ld Hz\n",
+ warn ("Linux kernel %d.%d.%d; CPU speed is %lld Hz\n",
This is good for C99 compliance (C99 only guarantees "ll" but doesn't do
anything from the practical point of view) -- "info libc"
`L'
`ll'
`q'
Specifies that the argument is a `long long int'. (This type is
an extension supported by the GNU C compiler. On systems that
don't support extra-long integers, this is the same as `long int'.)
The `q' modifier is another name for the same thing, which comes
from 4.4 BSD; a `long long int' is sometimes called a "quad" `int'.
Still it's good to use a standard approach whereever possible, so thanks,
Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html