Fix: NULL pointer dereference of THIS_MODULE with built-in modules
[lttng-modules.git] / wrapper / vmalloc.h
index cb755eefd0235e02e02aef4cfe1ac4187c5a43ea..2332439fe34c56515cefcaa4eda787a65ecaf835 100644 (file)
@@ -28,7 +28,7 @@
 #ifdef CONFIG_KALLSYMS
 
 #include <linux/kallsyms.h>
-#include "kallsyms.h"
+#include <wrapper/kallsyms.h>
 
 static inline
 void wrapper_vmalloc_sync_all(void)
@@ -44,8 +44,8 @@ void wrapper_vmalloc_sync_all(void)
                 * Only x86 needs vmalloc_sync_all to make sure LTTng does not
                 * trigger recursive page faults.
                 */
-               printk(KERN_WARNING "LTTng: vmalloc_sync_all symbol lookup failed.\n");
-               printk(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n");
+               printk_once(KERN_WARNING "LTTng: vmalloc_sync_all symbol lookup failed.\n");
+               printk_once(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n");
 #endif
        }
 }
This page took 0.023733 seconds and 4 git commands to generate.