diff options
author | Nikias Bassen | 2013-10-02 19:58:16 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-02 19:58:16 +0200 |
commit | 1729b43830d98af3f1b5edc457e3b7c14e637cab (patch) | |
tree | 0e6e16574dce270a6c9f5c17935c3646096cbc12 /tools | |
parent | f50f53d787623724b4d12834f0bd954403f84029 (diff) | |
download | libirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.gz libirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.bz2 |
irecovery: use macro for %lld so we can use %I64d for win32
Diffstat (limited to 'tools')
-rw-r--r-- | tools/irecovery.c | 5 |
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); |