Move logging into cmd_find_target rather than each function.

This commit is contained in:
nicm
2015-12-13 15:00:37 +00:00
parent 4a4daf1303
commit 9d191a6093
2 changed files with 24 additions and 26 deletions

5
cmd.c
View File

@ -538,8 +538,8 @@ cmd_set_state_flag(struct cmd *cmd, struct cmd_q *cmdq, char c)
if (statef->wl == NULL)
return (-1);
break;
case CMD_PANE_MARKED_S:
case CMD_PANE_MARKED_T:
case CMD_PANE_MARKED_S:
statef->wl = cmd_find_pane_marked(cmdq, flag, &statef->s,
&statef->wp);
if (statef->wl == NULL)
@ -595,8 +595,7 @@ cmd_prepare_state(struct cmd *cmd, struct cmd_q *cmdq)
int error;
tmp = cmd_print(cmd);
log_debug("preparing state for: %s (client %d)", tmp,
cmdq->client != NULL ? cmdq->client->fd : -1);
log_debug("preparing state for: %s (client %p)", tmp, cmdq->client);
free(tmp);
/* Start with an empty state. */