Add expr_op_to_bool helper
Remove BUG_ON from format_valid_if
Remove nested if
Remove magic numbers
Coding style: fix spaces inside parentheses
Fix printf size_t