summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-10-02 19:58:16 +0200
committerGravatar Nikias Bassen2013-10-02 19:58:16 +0200
commit1729b43830d98af3f1b5edc457e3b7c14e637cab (patch)
tree0e6e16574dce270a6c9f5c17935c3646096cbc12
parentf50f53d787623724b4d12834f0bd954403f84029 (diff)
downloadlibirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.gz
libirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.bz2
irecovery: use macro for %lld so we can use %I64d for win32
-rw-r--r--tools/irecovery.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index 7a093d3..a8c85eb 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -31,6 +31,9 @@
#ifndef sleep
#define sleep(n) Sleep(1000 * n)
#endif
+#define _FMT_lld "%I64d"
+#else
+#define _FMT_lld "%lld"
#endif
#define FILE_HISTORY_PATH ".irecovery"
@@ -144,7 +147,7 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne
ret = irecv_get_ecid(client, &ecid);
if(ret == IRECV_E_SUCCESS) {
- printf("ECID: %lld\n", ecid);
+ printf("ECID: " _FMT_lld "\n", ecid);
}
ret = irecv_get_srnm(client, srnm);