From: Florian Forster Date: Thu, 19 Nov 2009 11:30:15 +0000 (+0100) Subject: Added debugging statements to the send_command function. X-Git-Tag: librouteros-0.1.0~18 X-Git-Url: https://git.octo.it/?p=routeros-api.git;a=commitdiff_plain;h=b4dcb8d771035b82c8ffa1d4084725e5dee88995 Added debugging statements to the send_command function. --- diff --git a/src/main.c b/src/main.c index 1130394..2b59cbf 100644 --- a/src/main.c +++ b/src/main.c @@ -348,6 +348,7 @@ static int send_command (mt_connection_t *c, /* {{{ */ if (status != 0) return (status); + mt_debug ("send_command: command = %s;\n", command); status = buffer_add (&buffer_ptr, &buffer_size, command); if (status != 0) return (status); @@ -357,6 +358,7 @@ static int send_command (mt_connection_t *c, /* {{{ */ if (args[i] == NULL) return (EINVAL); + mt_debug ("send_command: arg[%zu] = %s;\n", i, args[i]); status = buffer_add (&buffer_ptr, &buffer_size, args[i]); if (status != 0) return (status);