]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - Documentation/printk-formats.txt
Documentation/printk-formats.txt: No casts needed for u64/s64
[karo-tx-linux.git] / Documentation / printk-formats.txt
index 22b4bc51fb4f18a08d06e93d0a8bce8d4b9bf0e4..44fc924ad008b5a5db9ce39376415b72524ca098 100644 (file)
@@ -185,11 +185,11 @@ struct va_format:
 
 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):
 
-       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,
 blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a