Skip to content
Snippets Groups Projects
Commit a48dd837 authored by David Maul's avatar David Maul :crab:
Browse files

feat: add more logging to kernel modul

parent 1f17fc9a
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,11 @@ static int thread(void *data)
while (!kthread_should_stop())
{
u64 ms = ktime_get_real_ns() / 1000000;
printk(KERN_INFO "Zeit: %llu ms\n", ms);
printk(KERN_INFO "[%llu]:\n", ms);
for (int n = 0; n < num_entries; n++)
{
printk(KERN_INFO "\t- %d: %d\n", n, ((int *)(entries[n].buffer))[0]);
}
ssleep(1); // 1 Sekunde schlafen
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment