]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/target/tcm_fc/tfc_cmd.c
Merge remote-tracking branch 'target-updates/for-next'
[karo-tx-linux.git] / drivers / target / tcm_fc / tfc_cmd.c
index 4d44ad34e99e1c67a7f5f3f13efae0eec4b001a1..b406f178ff390663951ff4915824b67acdfe31b2 100644 (file)
@@ -47,7 +47,7 @@
 /*
  * Dump cmd state for debugging.
  */
-void ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
+static void _ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
 {
        struct fc_exch *ep;
        struct fc_seq *sp;
@@ -79,6 +79,12 @@ void ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
        }
 }
 
+void ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
+{
+       if (unlikely(ft_debug_logging))
+               _ft_dump_cmd(cmd, caller);
+}
+
 static void ft_free_cmd(struct ft_cmd *cmd)
 {
        struct fc_frame *fp;