device: use proper format for integers (-Wformat)
Properly print signed and unsigned integers. This fixes warnings like:
src/device.c: In function ‘near_device_get_device’:
src/device.c:85:33: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Werror=format=]
85 | path = g_strdup_printf("%s/nfc%d/device%d", NFC_PATH,
| ~^
| |
| int
| %d
86 | adapter_idx, target_idx);
| ~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
1 file changed