|
From: Reverend H. <mk....@gm...> - 2018-11-29 14:00:30
|
[src/libmtp.c:3379]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/libmtp.c:3379]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
[src/libmtp.c:3379]: (warning) %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'.
[src/libmtp.c:3405]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
---
src/libmtp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libmtp.c b/src/libmtp.c
index 23bb3d2..483ac18 100644
--- a/src/libmtp.c
+++ b/src/libmtp.c
@@ -3376,7 +3376,7 @@ void LIBMTP_Dump_Device_Info(LIBMTP_mtpdevice_t *device)
printf(" UINT32 data type");
switch (opd.FormFlag) {
case PTP_OPFF_Range:
- printf(" range: MIN %d, MAX %d, STEP %d",
+ printf(" range: MIN %u, MAX %u, STEP %u",
opd.FORM.Range.MinimumValue.u32,
opd.FORM.Range.MaximumValue.u32,
opd.FORM.Range.StepSize.u32);
@@ -3402,7 +3402,7 @@ void LIBMTP_Dump_Device_Info(LIBMTP_mtpdevice_t *device)
} else {
printf(" enumeration: ");
for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
- printf("%d, ", opd.FORM.Enum.SupportedValue[k].u32);
+ printf("%u, ", opd.FORM.Enum.SupportedValue[k].u32);
}
}
break;
--
2.19.2
|