fix: logger
This commit is contained in:
parent
61e025343d
commit
db3bcaf7d1
28 changed files with 200 additions and 180 deletions
|
|
@ -61,13 +61,13 @@ schedule_debug(schedule_t *schedule)
|
|||
{
|
||||
if(schedule == NULL)
|
||||
{
|
||||
LOG_DEBUG("schedule is NULL");
|
||||
LOG_DEBUG("schedule is NULL\n");
|
||||
return;
|
||||
}
|
||||
char uuid_str[37];
|
||||
uuid_unparse(schedule->id, uuid_str);
|
||||
LOG_DEBUG("(1/3) %s @ %p", uuid_str, (void*)schedule);
|
||||
LOG_DEBUG("(2/3) period count: %3d", schedule->length);
|
||||
LOG_DEBUG("(1/3) %s @ %p\n", uuid_str, (void*)schedule);
|
||||
LOG_DEBUG("(2/3) period count: %3d\n", schedule->length);
|
||||
|
||||
// one block: "HH:MM-HH:MM, " --> size: 13 (14 with '\0')
|
||||
char *periods_debug_str = malloc(sizeof(char) * ((schedule->length * 13) + 1));
|
||||
|
|
@ -85,5 +85,5 @@ schedule_debug(schedule_t *schedule)
|
|||
);
|
||||
}
|
||||
|
||||
LOG_DEBUG("(3/3) periods: %s", periods_debug_str);
|
||||
LOG_DEBUG("(3/3) periods: %s\n", periods_debug_str);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue