diff options
Diffstat (limited to 'drivers/target/tcm_fc/tfc_cmd.c')
| -rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index b9cb5006177..823e6922249 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c @@ -48,7 +48,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; @@ -80,6 +80,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;  |