From 20ade0c6d6765d89730b720ee2633e28369df722 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 20 Nov 2021 12:09:38 +0000 Subject: [PATCH] 8 to printk --- _posts/2021-11-06-linux-contribution.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_posts/2021-11-06-linux-contribution.md b/_posts/2021-11-06-linux-contribution.md index 690a695..eedaee0 100644 --- a/_posts/2021-11-06-linux-contribution.md +++ b/_posts/2021-11-06-linux-contribution.md @@ -73,6 +73,7 @@ scp -r -P 2222 ~/.config/nvim root@localhost:/root/.config/ There is a `pr_debug` function used over the code, in order to enable those logs in `dmesg` for a specific module, you can do this: {% highlight bash %} +echo 8 > /proc/sys/kernel/printk echo 'module ip_set +p' > /sys/kernel/debug/dynamic_debug/control {% endhighlight %}