adjust output
This commit is contained in:
@@ -315,17 +315,15 @@ int start_watch_variable(watch_arg warg) {
|
||||
timer = get_timer(warg.time_ns); // get a valuable timer
|
||||
|
||||
if (timer == NULL) {
|
||||
printk(KERN_ERR "Timer is full\n");
|
||||
printk(KERN_ERR "No timer available, ALL timer is full\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
INIT_WORK(&timer->wk, diag_task_info_work);
|
||||
|
||||
printk(KERN_INFO "ptr transform kptr: %p\n", kptr);
|
||||
printk(KERN_INFO "timer: %p\n", timer);
|
||||
printk(KERN_INFO "timer->sentinel: %d, timer->time_ns: %lld\n",
|
||||
timer->sentinel, timer->time_ns);
|
||||
printk(KERN_INFO "timer->hr_timer: %p\n", &timer->hr_timer);
|
||||
printk(KERN_INFO "Convert ptr to kptr: %p\n", kptr);
|
||||
printk(KERN_INFO "Associated timer: %p , there are already %d variables, timer period %lld.\n", timer, timer->sentinel, timer->time_ns);
|
||||
// printk(KERN_INFO "timer->hr_timer: %p\n", &timer->hr_timer);
|
||||
|
||||
TIMER_CANCEL(timer); // just in case
|
||||
timer_add_watch(timer, k_watch_arg);
|
||||
|
||||
Reference in New Issue
Block a user