Commit 2a7930bd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jiri Kosina

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Acked-by: default avatarRob Landley <rob@landley.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ac20ad14
...@@ -185,11 +185,11 @@ struct va_format: ...@@ -185,11 +185,11 @@ struct va_format:
u64 SHOULD be printed with %llu/%llx, (unsigned long long): u64 SHOULD be printed with %llu/%llx, (unsigned long long):
printk("%llu", (unsigned long long)u64_var); printk("%llu", u64_var);
s64 SHOULD be printed with %lld/%llx, (long long): s64 SHOULD be printed with %lld/%llx, (long long):
printk("%lld", (long long)s64_var); printk("%lld", s64_var);
If <type> is dependent on a config option for its size (e.g., sector_t, If <type> is dependent on a config option for its size (e.g., sector_t,
blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment