Make cmd_log_argv take a printf-like format for the prefix.

This commit is contained in:
nicm
2019-05-25 06:58:10 +00:00
parent 0dc8b7d5d8
commit 930245d7ff
3 changed files with 15 additions and 8 deletions

2
tmux.h
View File

@ -1987,7 +1987,7 @@ int cmd_find_from_mouse(struct cmd_find_state *,
int cmd_find_from_nothing(struct cmd_find_state *, int);
/* cmd.c */
void cmd_log_argv(int, char **, const char *);
void printflike(3, 4) cmd_log_argv(int, char **, const char *, ...);
void cmd_prepend_argv(int *, char ***, char *);
void cmd_append_argv(int *, char ***, char *);
int cmd_pack_argv(int, char **, char *, size_t);