mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
sched/: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
This commit is contained in:
@@ -62,7 +62,7 @@ int clock_getres(clockid_t clock_id, struct timespec *res)
|
||||
{
|
||||
int ret = OK;
|
||||
|
||||
serr("clock_id=%d\n", clock_id);
|
||||
sinfo("clock_id=%d\n", clock_id);
|
||||
|
||||
/* Only CLOCK_REALTIME is supported */
|
||||
|
||||
@@ -79,7 +79,7 @@ int clock_getres(clockid_t clock_id, struct timespec *res)
|
||||
res->tv_sec = 0;
|
||||
res->tv_nsec = NSEC_PER_TICK;
|
||||
|
||||
serr("Returning res=(%d,%d)\n", (int)res->tv_sec, (int)res->tv_nsec);
|
||||
sinfo("Returning res=(%d,%d)\n", (int)res->tv_sec, (int)res->tv_nsec);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -68,7 +68,7 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp)
|
||||
uint32_t carry;
|
||||
int ret = OK;
|
||||
|
||||
serr("clock_id=%d\n", clock_id);
|
||||
sinfo("clock_id=%d\n", clock_id);
|
||||
DEBUGASSERT(tp != NULL);
|
||||
|
||||
#ifdef CONFIG_CLOCK_MONOTONIC
|
||||
@@ -155,7 +155,7 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp)
|
||||
}
|
||||
else
|
||||
{
|
||||
serr("Returning tp=(%d,%d)\n", (int)tp->tv_sec, (int)tp->tv_nsec);
|
||||
sinfo("Returning tp=(%d,%d)\n", (int)tp->tv_sec, (int)tp->tv_nsec);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -67,7 +67,7 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp)
|
||||
irqstate_t flags;
|
||||
int ret = OK;
|
||||
|
||||
serr("clock_id=%d\n", clock_id);
|
||||
sinfo("clock_id=%d\n", clock_id);
|
||||
DEBUGASSERT(tp != NULL);
|
||||
|
||||
/* CLOCK_REALTIME - POSIX demands this to be present. This is the wall
|
||||
@@ -120,9 +120,9 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp)
|
||||
#endif
|
||||
leave_critical_section(flags);
|
||||
|
||||
serr("basetime=(%ld,%lu) bias=(%ld,%lu)\n",
|
||||
(long)g_basetime.tv_sec, (unsigned long)g_basetime.tv_nsec,
|
||||
(long)bias.tv_sec, (unsigned long)bias.tv_nsec);
|
||||
sinfo("basetime=(%ld,%lu) bias=(%ld,%lu)\n",
|
||||
(long)g_basetime.tv_sec, (unsigned long)g_basetime.tv_nsec,
|
||||
(long)bias.tv_sec, (unsigned long)bias.tv_nsec);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user