summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-31 03:34:24 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-31 03:34:24 +0000
commita1141fb3d78744e9d9ef992d065a0282ded1beff (patch)
tree4cc2bd2e1c441cbb59f35e123cedb90d54c4f10e
parent28b7d24441d9c6913bf039f459d9770f7bf5c90c (diff)
downloadATCD-a1141fb3d78744e9d9ef992d065a0282ded1beff.tar.gz
explicitly convert 64 bit RtecScheduler::Times to
32 bits with ACE_U64_TO_U32 in ACE_OS::fprintf () call.
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp60
1 files changed, 32 insertions, 28 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
index 76cf24b4207..3561aad5a00 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
@@ -400,13 +400,13 @@ void ACE_DynScheduler::export(RT_Info& info, FILE* file)
"# begin calls\n%d\n",
info.entry_point.in (),
info.handle,
- info.worst_case_execution_time,
- info.typical_execution_time,
- info.cached_execution_time,
+ ACE_U64_TO_U32 (info.worst_case_execution_time),
+ ACE_U64_TO_U32 (info.typical_execution_time),
+ ACE_U64_TO_U32 (info.cached_execution_time),
info.period,
info.criticality,
info.importance,
- info.quantum,
+ ACE_U64_TO_U32 (info.quantum),
info.threads,
number_of_dependencies(info));
@@ -1550,13 +1550,15 @@ ACE_DynScheduler::output_dispatch_timeline (FILE *file)
entry_point.in (),
link->entry ().dispatch_entry ().original_dispatch ()->dispatch_id (),
link->entry ().dispatch_entry ().dispatch_id (),
- link->entry ().arrival (),
- link->entry ().deadline (),
- link->entry ().start (), last_entry->stop (),
- link->entry ().dispatch_entry ().task_entry ().rt_info ()->
- worst_case_execution_time,
- tmp,
- link->entry ().deadline () - last_entry->stop ()) < 0)
+ ACE_U64_TO_U32 (link->entry ().arrival ()),
+ ACE_U64_TO_U32 (link->entry ().deadline ()),
+ ACE_U64_TO_U32 (link->entry ().start ()),
+ ACE_U64_TO_U32 (last_entry->stop ()),
+ ACE_U64_TO_U32 (link->entry ().dispatch_entry ().task_entry ().
+ rt_info ()->worst_case_execution_time),
+ ACE_U64_TO_U32 (tmp),
+ ACE_U64_TO_U32 (link->entry ().deadline () -
+ last_entry->stop ())) < 0)
{
return UNABLE_TO_WRITE_SCHEDULE_FILE;
@@ -1569,13 +1571,15 @@ ACE_DynScheduler::output_dispatch_timeline (FILE *file)
link->entry ().dispatch_entry ().task_entry ().rt_info ()->
entry_point.in (),
link->entry ().dispatch_entry ().dispatch_id (),
- link->entry ().arrival (),
- link->entry ().deadline (),
- link->entry ().start (), last_entry->stop (),
- link->entry ().dispatch_entry ().task_entry ().rt_info ()->
- worst_case_execution_time,
- tmp,
- link->entry ().deadline () - last_entry->stop ()) < 0)
+ ACE_U64_TO_U32 (link->entry ().arrival ()),
+ ACE_U64_TO_U32 (link->entry ().deadline ()),
+ ACE_U64_TO_U32 (link->entry ().start ()),
+ ACE_U64_TO_U32 (last_entry->stop ()),
+ ACE_U64_TO_U32 (link->entry ().dispatch_entry ().task_entry ().
+ rt_info ()->worst_case_execution_time),
+ ACE_U64_TO_U32 (tmp),
+ ACE_U64_TO_U32 (link->entry ().deadline () -
+ last_entry->stop ())) < 0)
{
return UNABLE_TO_WRITE_SCHEDULE_FILE;
@@ -1634,8 +1638,8 @@ ACE_DynScheduler::output_preemption_timeline (FILE *file)
entry_point.in (),
link->entry ().dispatch_entry ().original_dispatch ()->dispatch_id (),
link->entry ().dispatch_entry ().dispatch_id (),
- link->entry ().start (),
- link->entry ().stop ()) < 0)
+ ACE_U64_TO_U32 (link->entry ().start ()),
+ ACE_U64_TO_U32 (link->entry ().stop ())) < 0)
{
return UNABLE_TO_WRITE_SCHEDULE_FILE;
}
@@ -1647,8 +1651,8 @@ ACE_DynScheduler::output_preemption_timeline (FILE *file)
link->entry ().dispatch_entry ().task_entry ().rt_info ()->
entry_point.in (),
link->entry ().dispatch_entry ().dispatch_id (),
- link->entry ().start (),
- link->entry ().stop ()) < 0)
+ ACE_U64_TO_U32 (link->entry ().start ()),
+ ACE_U64_TO_U32 (link->entry ().stop ())) < 0)
{
return UNABLE_TO_WRITE_SCHEDULE_FILE;
}
@@ -1751,7 +1755,7 @@ ACE_DynScheduler::output_viewer_timeline (FILE *file)
if (current_entry)
{
if (ACE_OS::fprintf (
- file, "%-11s %9lf %9lf %8lu %8lu %11lu %11lu\n",
+ file, "%-11s %9lf %9lf %8lu %8lu %11lu %11u\n",
current_entry->dispatch_entry ().task_entry ().rt_info ()->
entry_point.in (),
ACE_static_cast (
@@ -1761,11 +1765,11 @@ ACE_DynScheduler::output_viewer_timeline (FILE *file)
double,
ACE_UINT64_DBLCAST_ADAPTER(current_completion)),
0.0,
- current_entry->arrival (),
- current_entry->deadline (),
- current_last_entry->stop (),
- current_entry->dispatch_entry ().task_entry ().rt_info ()->
- worst_case_execution_time) < 0)
+ ACE_U64_TO_U32 (current_entry->arrival ()),
+ ACE_U64_TO_U32 (current_entry->deadline ()),
+ ACE_U64_TO_U32 (current_last_entry->stop ()),
+ ACE_U64_TO_U32 (current_entry->dispatch_entry ().task_entry ().
+ rt_info ()->worst_case_execution_time)) < 0)
{
return UNABLE_TO_WRITE_SCHEDULE_FILE;
}