projects
/
routeros-api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added debugging statements to the send_command function.
[routeros-api.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
1130394
..
2b59cbf
100644
(file)
--- 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);
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);
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);
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);
status = buffer_add (&buffer_ptr, &buffer_size, args[i]);
if (status != 0)
return (status);