X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fsandbox%2Fwin%2Fsandbox_poc%2Fpocdll%2Finvasive.cc;h=9ee13b0cb9dc538693b094ef068b4ddcd77efdfc;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=df3661243a8983b5e7901f0558ef2d1f7028974d;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/sandbox/win/sandbox_poc/pocdll/invasive.cc b/src/sandbox/win/sandbox_poc/pocdll/invasive.cc index df36612..9ee13b0 100644 --- a/src/sandbox/win/sandbox_poc/pocdll/invasive.cc +++ b/src/sandbox/win/sandbox_poc/pocdll/invasive.cc @@ -35,11 +35,11 @@ void POCDLL_API TestThreadBombing(HANDLE log) { 0, // No creation flags &tid); if (thread) { - fprintf(output, "[GRANTED] Creating thread with tid 0x%X\r\n", tid); + fprintf(output, "[GRANTED] Creating thread with tid 0x%lX\r\n", tid); ::CloseHandle(thread); number_errors = 0; } else { - fprintf(output, "[BLOCKED] Creating thread. Error %d\r\n", + fprintf(output, "[BLOCKED] Creating thread. Error %ld\r\n", ::GetLastError()); number_errors++; } @@ -90,10 +90,10 @@ void POCDLL_API TestTakeAllCpu(HANDLE log) { ::SetThreadAffinityMask(thread, affinity_mask); if (::SetThreadPriority(thread, REALTIME_PRIORITY_CLASS)) { - fprintf(output, "[GRANTED] Set thread(%d) priority to Realtime\r\n", + fprintf(output, "[GRANTED] Set thread(%ld) priority to Realtime\r\n", tid); } else { - fprintf(output, "[BLOCKED] Set thread(%d) priority to Realtime\r\n", + fprintf(output, "[BLOCKED] Set thread(%ld) priority to Realtime\r\n", tid); } @@ -103,7 +103,7 @@ void POCDLL_API TestTakeAllCpu(HANDLE log) { system_mask = system_mask >> 1; } } else { - fprintf(output, "[ERROR] Cannot get affinity mask. Error %d\r\n", + fprintf(output, "[ERROR] Cannot get affinity mask. Error %ld\r\n", ::GetLastError()); } }