kernel: event_logger: fixed assert checking for priority

prio is member of base, not k_thread struct.

Change-Id: I77de52497e196eb058bf8850e25eabe42cb2ab14
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-11-12 21:38:35 -05:00
commit 22a75145ef

View file

@ -131,7 +131,7 @@ void _sys_k_event_logger_context_switch(void)
}
#define ASSERT_CURRENT_IS_COOP_THREAD() \
__ASSERT(_current->prio < 0, "must be a coop thread")
__ASSERT(_current->base.prio < 0, "must be a coop thread")
void sys_k_event_logger_register_as_collector(void)
{