[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dccp
Subject:    Re: [PATCH] CCID2: Fix format string for 64-bit quantities
From:       David Miller <davem () davemloft ! net>
Date:       2006-09-27 23:35:06
Message-ID: 20060927.163506.26278321.davem () davemloft ! net
[Download RAW message or body]

From: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Date: Tue, 26 Sep 2006 22:48:23 +0100

> Use correct format string when printing 64 bit quantities (%L instead of %ll).
> 
> Note to Arnaldo: This patch is to be applied after the 3 patches I already sent
> you.  Else, it will either apply with some fuzz, or not at all.
> 
> Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>

Where is "%L" defined for non-float types?  Is it supported by
all gcc versions?

The usual way to fix this it to simply cast the argument to
"long long" or "unsigned long long" and retain the format
string.

-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic