summaryrefslogtreecommitdiff
path: root/utils/MTP
diff options
context:
space:
mode:
Diffstat (limited to 'utils/MTP')
-rw-r--r--utils/MTP/beastpatcher/mtp_libmtp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/MTP/beastpatcher/mtp_libmtp.c b/utils/MTP/beastpatcher/mtp_libmtp.c
index 9ada7bfeea..ed2d32b85f 100644
--- a/utils/MTP/beastpatcher/mtp_libmtp.c
+++ b/utils/MTP/beastpatcher/mtp_libmtp.c
@@ -104,11 +104,8 @@ static int progress(uint64_t const sent, uint64_t const total,
104 (void)data; 104 (void)data;
105 105
106 int percent = (sent * 100) / total; 106 int percent = (sent * 100) / total;
107#ifdef __WIN32__ 107
108 printf("Progress: %I64u of %I64u (%d%%)\r", sent, total, percent);
109#else
110 printf("Progress: %"PRIu64" of %"PRIu64" (%d%%)\r", sent, total, percent); 108 printf("Progress: %"PRIu64" of %"PRIu64" (%d%%)\r", sent, total, percent);
111#endif
112 fflush(stdout); 109 fflush(stdout);
113 return 0; 110 return 0;
114} 111}