fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and "dlmodule.c". (#9093)
This commit is contained in:
parent
071b3d9244
commit
3b1d4e9222
|
@ -50,4 +50,4 @@ rt_err_t rt_driver_unregister(rt_driver_t drv)
|
|||
|
||||
return ret;
|
||||
}
|
||||
RTM_EXPORT(rt_driver_register);
|
||||
RTM_EXPORT(rt_driver_unregister);
|
||||
|
|
|
@ -147,7 +147,6 @@ __exit:
|
|||
|
||||
return result;
|
||||
}
|
||||
RTM_EXPORT(rt_completion_wait);
|
||||
|
||||
/**
|
||||
* @brief This function indicates a completion has done and wakeup the thread
|
||||
|
|
|
@ -128,8 +128,8 @@ static void _dlmodule_exit(void)
|
|||
rt_thread_t thread = (rt_thread_t)object;
|
||||
|
||||
/* stop timer and suspend thread*/
|
||||
if ((thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_CLOSE &&
|
||||
(thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT)
|
||||
if ((RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) != RT_THREAD_CLOSE &&
|
||||
(RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT)
|
||||
{
|
||||
rt_timer_stop(&(thread->thread_timer));
|
||||
rt_thread_suspend(thread);
|
||||
|
@ -770,7 +770,7 @@ void dlmodule_exit(int ret_code)
|
|||
/* the stat of module was changed to CLOSING in _dlmodule_exit */
|
||||
|
||||
thread = module->main_thread;
|
||||
if ((thread->stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE)
|
||||
if ((RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE)
|
||||
{
|
||||
/* main thread already closed */
|
||||
rt_exit_critical();
|
||||
|
|
|
@ -94,7 +94,7 @@ void vsyslog(int priority, const char *format, va_list args)
|
|||
priority |= local_facility;
|
||||
}
|
||||
|
||||
ulog_voutput(priority, local_ident, RT_TRUE, format, args);
|
||||
ulog_voutput(priority, local_ident, RT_TRUE, RT_NULL, 0, 0, 0, format, args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -92,6 +92,8 @@ void ulog_hexdump(const char *tag, rt_size_t width, const rt_uint8_t *buf, rt_si
|
|||
/*
|
||||
* Another log output API. This API is more difficult to use than LOG_X API.
|
||||
*/
|
||||
void ulog_voutput(rt_uint32_t level, const char *tag, rt_bool_t newline, const rt_uint8_t *hex_buf,
|
||||
rt_size_t hex_size, rt_size_t hex_width, rt_base_t hex_addr, const char *format, va_list args);
|
||||
void ulog_output(rt_uint32_t level, const char *tag, rt_bool_t newline, const char *format, ...);
|
||||
void ulog_raw(const char *format, ...);
|
||||
|
||||
|
|
Loading…
Reference in New Issue