adjust output

This commit is contained in:
zy
2023-12-06 20:55:22 -05:00
parent b490da236e
commit 806356363c
3 changed files with 7 additions and 12 deletions

View File

@@ -67,7 +67,6 @@ kernel_watch_timer *get_timer(unsigned long long time_ns) {
}
// if all timer is full
if (i >= MAX_TIMER_NUM) {
printk(KERN_ERR "No timer available\n");
return NULL;
}
// if a new timer, init it
@@ -97,7 +96,7 @@ kernel_watch_timer *get_timer(unsigned long long time_ns) {
unsigned char timer_add_watch(kernel_watch_timer *timer,
kernel_watch_arg k_watch_arg) {
if (TIMER_FILLED(timer)) {
printk(KERN_ERR "Timer is full\n");
printk(KERN_ERR "ALL Timer is full\n");
return -1;
}
memcpy(&timer->k_watch_args[timer->sentinel], &k_watch_arg,