Re: [Libguestfs] [PATCH miniexpect 2/2] Add debugging capability at runtime.

2017-10-12 Thread Eric Blake
On 10/12/2017 09:12 AM, Pino Toscano wrote: > On Wednesday, 11 October 2017 17:23:45 CEST Richard W.M. Jones wrote: >> +static int >> +mexp_vprintf (mexp_h *h, int password, const char *fs, va_list args) >> { >> - va_list args; >>char *msg; >>int len; >>size_t n; >>ssize_t r; >>

Re: [Libguestfs] [PATCH miniexpect 2/2] Add debugging capability at runtime.

2017-10-12 Thread Pino Toscano
On Wednesday, 11 October 2017 17:23:45 CEST Richard W.M. Jones wrote: > +static int > +mexp_vprintf (mexp_h *h, int password, const char *fs, va_list args) > { > - va_list args; >char *msg; >int len; >size_t n; >ssize_t r; >char *p; > > - va_start (args, fs); >len =

[Libguestfs] [PATCH miniexpect 2/2] Add debugging capability at runtime.

2017-10-11 Thread Richard W.M. Jones
Debugging can now be enabled at runtime. --- example-sshpass.c | 46 +--- miniexpect.c | 78 ++- miniexpect.h | 6 + miniexpect.pod| 21 +++ 4 files changed, 113 insertions(+), 38