Fix -Wformat warnings in ExceptionDemo

llvm-svn: 244995
This commit is contained in:
David Blaikie
2015-08-14 00:31:49 +00:00
parent 3b20b04072
commit f4057fec55

View File

@@ -77,6 +77,7 @@
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>
#include <inttypes.h>
#ifndef USE_GLOBAL_STR_CONSTS #ifndef USE_GLOBAL_STR_CONSTS
#define USE_GLOBAL_STR_CONSTS true #define USE_GLOBAL_STR_CONSTS true
@@ -569,8 +570,8 @@ static bool handleActionValue(int64_t *resultAction,
fprintf(stderr, fprintf(stderr,
"handleActionValue(...): exceptionObject = <%p>, " "handleActionValue(...): exceptionObject = <%p>, "
"excp = <%p>.\n", "excp = <%p>.\n",
exceptionObject, (void*)exceptionObject,
excp); (void*)excp);
#endif #endif
const uint8_t *actionPos = (uint8_t*) actionEntry, const uint8_t *actionPos = (uint8_t*) actionEntry,
@@ -588,8 +589,8 @@ static bool handleActionValue(int64_t *resultAction,
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, fprintf(stderr,
"handleActionValue(...):typeOffset: <%lld>, " "handleActionValue(...):typeOffset: <%" PRIi64 ">, "
"actionOffset: <%lld>.\n", "actionOffset: <%" PRIi64 ">.\n",
typeOffset, typeOffset,
actionOffset); actionOffset);
#endif #endif
@@ -848,7 +849,7 @@ _Unwind_Reason_Code ourPersonality(int version,
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, fprintf(stderr,
"ourPersonality(...):lsda = <%p>.\n", "ourPersonality(...):lsda = <%p>.\n",
lsda); (void*)lsda);
#endif #endif
// The real work of the personality function is captured here // The real work of the personality function is captured here
@@ -1694,7 +1695,7 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos,
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, fprintf(stderr,
"createStandardUtilityFunctions(...):ourBaseFromUnwindOffset " "createStandardUtilityFunctions(...):ourBaseFromUnwindOffset "
"= %lld, sizeof(struct OurBaseException_t) - " "= %" PRIi64 ", sizeof(struct OurBaseException_t) - "
"sizeof(struct _Unwind_Exception) = %lu.\n", "sizeof(struct _Unwind_Exception) = %lu.\n",
ourBaseFromUnwindOffset, ourBaseFromUnwindOffset,
sizeof(struct OurBaseException_t) - sizeof(struct OurBaseException_t) -