From: Wayne Davison Date: Sat, 7 May 2011 19:11:33 +0000 (-0700) Subject: Mention the number of child args. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/54d13604fa7521d7879c5552d56c197d6f542467 Mention the number of child args. --- diff --git a/util.c b/util.c index 5200a9aa..abf0cd48 100644 --- a/util.c +++ b/util.c @@ -94,6 +94,7 @@ int fd_pair(int fd[2]) void print_child_argv(const char *prefix, char **cmd) { + int cnt = 0; rprintf(FCLIENT, "%s ", prefix); for (; *cmd; cmd++) { /* Look for characters that ought to be quoted. This @@ -107,8 +108,9 @@ void print_child_argv(const char *prefix, char **cmd) } else { rprintf(FCLIENT, "%s ", *cmd); } + cnt++; } - rprintf(FCLIENT, "\n"); + rprintf(FCLIENT, " (%d args)\n", cnt); } NORETURN void out_of_memory(const char *str)