diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-08-20 17:07:23 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-08-27 04:51:49 -0400 |
commit | 2a7930bd77fee02ec1dd83f6024cef92aecbf8c7 (patch) | |
tree | 382250d609f90a7171d4de34e43654fa8d65cb33 /Documentation/printk-formats.txt | |
parent | ac20ad14c3bdb9ed2c43ae16fd949ede9c339502 (diff) |
Documentation/printk-formats.txt: No casts needed for u64/s64
Now all 64-bit architectures have been converted to int-ll64.h in kernel
space, casting to (unsigned) long long is no longer needed when formatting
u64/s64.
For backwards compatibility, alpha, ia64, mips64, and powerpc64 still use
int-l64.h in userspace.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/printk-formats.txt')
-rw-r--r-- | Documentation/printk-formats.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt index 22b4bc51fb4f..44fc924ad008 100644 --- a/Documentation/printk-formats.txt +++ b/Documentation/printk-formats.txt | |||
@@ -185,11 +185,11 @@ struct va_format: | |||
185 | 185 | ||
186 | u64 SHOULD be printed with %llu/%llx, (unsigned long long): | 186 | u64 SHOULD be printed with %llu/%llx, (unsigned long long): |
187 | 187 | ||
188 | printk("%llu", (unsigned long long)u64_var); | 188 | printk("%llu", u64_var); |
189 | 189 | ||
190 | s64 SHOULD be printed with %lld/%llx, (long long): | 190 | s64 SHOULD be printed with %lld/%llx, (long long): |
191 | 191 | ||
192 | printk("%lld", (long long)s64_var); | 192 | printk("%lld", s64_var); |
193 | 193 | ||
194 | If <type> is dependent on a config option for its size (e.g., sector_t, | 194 | If <type> is dependent on a config option for its size (e.g., sector_t, |
195 | blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a | 195 | blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a |