We get compile warnings of the form:
drivers/console/uart_console.c:508:8: error: converting the result of
'<<' to a boolean; did you mean
'((__aeabi_ctype_table_ + 1)[(byte)] << 28) != 0'?
[-Werror,-Wint-in-bool-context]
if (!isprint(byte)) {
^
Since isprint returns an int, change check to an explicit test against
the return value.
Signed-off-by: Kumar Gala <kumar.gala@intel.com>
|
||
|---|---|---|
| .. | ||
| ctf | ||
| include | ||
| sysview | ||
| test | ||
| user | ||
| CMakeLists.txt | ||
| Kconfig | ||
| tracing_backend_posix.c | ||
| tracing_backend_ram.c | ||
| tracing_backend_uart.c | ||
| tracing_backend_usb.c | ||
| tracing_buffer.c | ||
| tracing_core.c | ||
| tracing_format_async.c | ||
| tracing_format_common.c | ||
| tracing_format_sync.c | ||
| tracing_none.c | ||
| tracing_tracking.c | ||