Please sign in to comment.
print format: adjust specifiers to be compatible with a 64-bit build
The size_t type is either compatible with an int on 32-bit target, or a long on 64-bit targets. It could even be a long even on some 32-bit targets. Let's use the z qualifier in the printf format to be compatible with whatever flavor in use. In case of pointers, let's just use %p with pointers directly and avoid casts altogether. Signed-off-by: Nicolas Pitre <email@example.com>
- Loading branch information...
Showing with 18 additions and 21 deletions.