]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
rust/log: clarify comment in non-debug mode SCLogDebug
authorJason Ish <jason.ish@oisf.net>
Mon, 16 Nov 2020 17:43:17 +0000 (11:43 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Nov 2020 13:05:30 +0000 (14:05 +0100)
rust/src/log.rs

index 9d3a5ec2d43f6a500450bbfca40ef6f596fabe79..3dcd91ef0182e77b69042048e1e10576d04fb5ad 100644 (file)
@@ -160,8 +160,10 @@ macro_rules!SCLogDebug {
     }
 }
 
-// Release mode: ignore arguments
-// Use a reference to avoid moving values.
+// SCLogDebug variation to use when not compiled with debug support.
+//
+// This macro will only use the parameters passed to prevent warnings
+// about unused variables, but is otherwise the equivalent to a no-op.
 #[cfg(not(feature = "debug"))]
 #[macro_export]
 macro_rules!SCLogDebug {