From 4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Apr 2021 11:00:24 +0200 Subject: rtems: Change rtems_task_get_affinity() status In case the processor set is not large enough to contain the processor affinity set of the task return RTEMS_INVALID_SIZE instead of RTEMS_INVALID_NUMBER. This is more in line with other directives since the issue is related to the size of an object. Close #4393. --- cpukit/include/rtems/score/schedulerimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/include/rtems/score/schedulerimpl.h') diff --git a/cpukit/include/rtems/score/schedulerimpl.h b/cpukit/include/rtems/score/schedulerimpl.h index 397789372c..65c600b583 100644 --- a/cpukit/include/rtems/score/schedulerimpl.h +++ b/cpukit/include/rtems/score/schedulerimpl.h @@ -695,7 +695,7 @@ RTEMS_INLINE_ROUTINE const Processor_mask *_Scheduler_Get_processors( * * @retval STATUS_SUCCESSFUL The operation succeeded. * - * @retval STATUS_INVALID_NUMBER The processor set was too small. + * @retval STATUS_INVALID_SIZE The processor set was too small. */ Status_Control _Scheduler_Get_affinity( Thread_Control *the_thread, -- cgit v1.2.3