Fix: use printk_once() for wrapper warning messages
[lttng-modules.git] / wrapper / tracepoint.h
index 023086e42d59b4f82acfb6c7f5d77300a71edae9..367cdf42f1c1d343ee4414afe5069d478ac7976b 100644 (file)
@@ -82,7 +82,7 @@ int wrapper_tracepoint_module_notify(struct notifier_block *nb,
        if (tracepoint_module_notify_sym) {
                return tracepoint_module_notify_sym(nb, val, mod);
        } else {
-               printk(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed. It probably means you kernel don't need this work-around. Please consider upgrading LTTng modules to make this warning go away.\n");
+               printk_once(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed. It probably means you kernel don't need this work-around. Please consider upgrading LTTng modules to make this warning go away.\n");
                return -ENOSYS;
        }
 }
This page took 0.027352 seconds and 4 git commands to generate.