From 3d07ab566435c315d3933dd01c0462f5029d7d36 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 29 Oct 2008 11:15:33 +0000 Subject: [PATCH] Warning fixes --- src/OpenThreads/sproc/SprocThread.c++ | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/OpenThreads/sproc/SprocThread.c++ b/src/OpenThreads/sproc/SprocThread.c++ index c3b3b1321..84c464d48 100755 --- a/src/OpenThreads/sproc/SprocThread.c++ +++ b/src/OpenThreads/sproc/SprocThread.c++ @@ -198,13 +198,13 @@ void ThreadPrivateActions::PrintThreadSchedulingInfo(Thread *thread) { if(status != 0 || my_policy == -1) { printf("THREAD INFO (%d) : Get sched param: %s/%s\n", - thread->getProcessId(), + unsigned int(thread->getProcessId()), strerror(status), strerror(errno)); } else { printf( "THREAD INFO (%d) : Thread running at %s / Priority: %d\n", - thread->getProcessId(), + unsigned int(thread->getProcessId()), (my_policy == SCHED_FIFO ? "SCHEDULE_FIFO" : (my_policy == SCHED_RR ? "SCHEDULE_ROUND_ROBIN" : (my_policy == SCHED_TS ? "SCHEDULE_TIME_SHARE" @@ -217,7 +217,7 @@ void ThreadPrivateActions::PrintThreadSchedulingInfo(Thread *thread) { printf( "THREAD INFO (%d) : Max priority: %d, Min priority: %d\n", - thread->getProcessId(), + unsigned int(thread->getProcessId()), max_priority, min_priority); } @@ -806,8 +806,6 @@ int OpenThreads::GetNumberOfProcessors() int OpenThreads::SetProcessorAffinityOfCurrentThread(unsigned int cpunum) { - if (cpunum<0) return -1; - Thread::Init(); Thread* thread = Thread::CurrentThread();