bluetooth: use proper format for integers (-Wformat)
Properly print signed and unsigned integers. This fixes warnings like:
In file included from src/near.h:36,
from src/bluetooth.c:32:
src/bluetooth.c: In function ‘bt_adapter_property_changed’:
./include/near/log.h:45:14: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘int’ [-Werror=format=]
45 | near_debug("%s:%s() " fmt, \
| ^~~~~~~~~~
src/bluetooth.c:465:3: note: in expansion of macro ‘DBG’
465 | DBG("%s: %x", property, bt_def_oob_data.class_of_device);
| ^~~
In file included from src/near.h:36,
from src/bluetooth.c:32:
src/bluetooth.c: In function ‘bt_adapter_property_changed’:
./include/near/log.h:45:14: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘int’ [-Werror=format=]
45 | near_debug("%s:%s() " fmt, \
| ^~~~~~~~~~
src/bluetooth.c:475:3: note: in expansion of macro ‘DBG’
475 | DBG("%s: %u", property, bt_def_oob_data.powered);
| ^~~
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
1 file changed