summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-16 15:12:38 +0000
committernicm <nicm>2017-06-16 15:12:38 +0000
commita67df177634f5ff3f6a24598d4016f61a794af62 (patch)
tree3eb9537b70db08203f2ca8237da325d6176031f5 /cmd-find.c
parentd685604d0460fd5894c53b20d18e6157e8dc0000 (diff)
Tweak some logging.
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/cmd-find.c b/cmd-find.c
index a74ccaee..7736dcf3 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -950,7 +950,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
struct mouse_event *m;
struct cmd_find_state current;
char *colon, *period, *copy = NULL;
- const char *session, *window, *pane;
+ const char *session, *window, *pane, *s;
int window_only = 0, pane_only = 0;
/* Can fail flag implies quiet. */
@@ -958,10 +958,18 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
flags |= CMD_FIND_QUIET;
/* Log the arguments. */
+ if (type == CMD_FIND_PANE)
+ s = "pane";
+ else if (type == CMD_FIND_WINDOW)
+ s = "window";
+ else if (type == CMD_FIND_SESSION)
+ s = "session";
+ else
+ s = "unknown";
if (target == NULL)
- log_debug("%s: target none, type %d", __func__, type);
+ log_debug("%s: target none, type %s", __func__, s);
else
- log_debug("%s: target %s, type %d", __func__, target, type);
+ log_debug("%s: target %s, type %s", __func__, target, s);
log_debug("%s: item %p, flags %#x", __func__, item, flags);
/* Clear new state. */