Added brackets around (unsigned int) to avoid IRIX compile error. Merged from svn/trunk using:

svn merge -r 9762:9763 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/
This commit is contained in:
Robert Osfield
2009-02-11 17:08:04 +00:00
parent 89052bec27
commit 7c97bab944

View File

@@ -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",
unsigned int(thread->getProcessId()),
(unsigned int)(thread->getProcessId()),
strerror(status),
strerror(errno));
} else {
printf(
"THREAD INFO (%d) : Thread running at %s / Priority: %d\n",
unsigned int(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",
unsigned int(thread->getProcessId()),
(unsigned int)(thread->getProcessId()),
max_priority, min_priority);
}