Skip to content

Commit

Permalink
print thread identifiers in decimal not hex in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryvk committed Apr 13, 2010
1 parent ab6da95 commit 54fa53b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runtime/x86-win32-os.c
Expand Up @@ -159,13 +159,13 @@ void plant_call(HANDLE thread, planted_function_t fn)
CONTEXT context;
if (SuspendThread(thread) == -1)
{
fprintf(stderr, "Unable to suspend thread 0x%x\n", (int)thread);
fprintf(stderr, "Unable to suspend thread %lu\n", (int)thread);
return;
}
context.ContextFlags = CONTEXT_FULL;
if (GetThreadContext(thread, &context) == 0)
{
fprintf(stderr, "Unable to get thread context for thread 0x%x\n", (int) thread);
fprintf(stderr, "Unable to get thread context for thread %lu\n", (int) thread);
ResumeThread(thread);
return;
}
Expand Down Expand Up @@ -216,15 +216,15 @@ void plant_call(HANDLE thread, planted_function_t fn)
}
if (SetThreadContext(thread, &context) == 0)
{
fprintf(stderr, "Unable to get thread context for thread 0x%x\n", (int) thread);
fprintf(stderr, "Unable to set thread context for thread %lu\n", (int) thread);
ResumeThread(thread);
return;
}

if (ResumeThread(thread) == -1)
{
fprintf(stderr, "Unable to resume thread 0x%x\n", (int)thread);
fprintf(stderr, "Unable to resume thread %lu\n", (int)thread);
return;
}
fprintf(stderr, "Function planted to thread 0x%x\n", (int)thread);
//fprintf(stderr, "Function planted to thread %lu\n", (int)thread);
}

0 comments on commit 54fa53b

Please sign in to comment.