summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-17 10:34:13 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-17 10:37:20 +0000
commit6457b78169f775723ba764a7f137853f4400a79b (patch)
treeb509ce29bf1ef1cb1cba088b2ce1552265ea360c
parent81ab89d7fbfdde25e999e2a0cba505afff812462 (diff)
idc: Fix format of exit code message.
Fix %ul -> %lu for unsigned long. Add hex output. Change-Id: Ib109b641abe48e11c8603cfc86735279a5c3c14b Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r--src/tools/idc/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp
index 51611df..a612e80 100644
--- a/src/tools/idc/main.cpp
+++ b/src/tools/idc/main.cpp
@@ -140,7 +140,7 @@ static bool runWithQtInEnvironment(const QString &cmd)
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
if (exitCode)
- fprintf(stderr, "\"%s\" returned exit code: %ul\n", qPrintable(cmd), exitCode);
+ fprintf(stderr, "\"%s\" returned exit code: %lu (0x%lx)\n", qPrintable(cmd), exitCode, exitCode);
return exitCode == 0;
}