From 806356363cae90bd3602ecc3564ebcbcbdc1dbaf Mon Sep 17 00:00:00 2001 From: zy Date: Wed, 6 Dec 2023 20:55:22 -0500 Subject: adjust output --- source/module/monitor_timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/module/monitor_timer.c') diff --git a/source/module/monitor_timer.c b/source/module/monitor_timer.c index d669b76..f23e330 100644 --- a/source/module/monitor_timer.c +++ b/source/module/monitor_timer.c @@ -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, -- cgit v1.2.3