Use portable format specifiers: Clarify some casted expressions.

Though correct (to my understanding), some of the casts introduced in
previous commits could lead to confusion, by casting only the first
expression component instead of the whole expression.

This fixes that, parenthesizing casted expressions, except where
operator precedence rules make it unneccesary.
Use portable format specifiers: Improve arguments formatting.

At some places, printf-like function's arguments styling could be
improved to enhance readability.