adjust output
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user