mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-25 16:57:20 +00:00
kernel: cleanup debug APIs
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this API to LOG_x and remove this API. - `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove them directly. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
@@ -821,7 +821,7 @@ sysret_t sys_unlink(const char *pathname)
|
||||
sysret_t sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
||||
{
|
||||
int ret = 0;
|
||||
dbg_log(DBG_LOG, "sys_nanosleep\n");
|
||||
LOG_D("sys_nanosleep\n");
|
||||
if (!lwp_user_accessable((void *)rqtp, sizeof *rqtp))
|
||||
return -EFAULT;
|
||||
|
||||
@@ -4759,7 +4759,7 @@ sysret_t sys_clock_gettime(clockid_t clk, struct timespec *ts)
|
||||
sysret_t sys_clock_nanosleep(clockid_t clk, int flags, const struct timespec *rqtp, struct timespec *rmtp)
|
||||
{
|
||||
int ret = 0;
|
||||
dbg_log(DBG_LOG, "sys_nanosleep\n");
|
||||
LOG_D("sys_nanosleep\n");
|
||||
if (!lwp_user_accessable((void *)rqtp, sizeof *rqtp))
|
||||
return -EFAULT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user