projects
/
routeros-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9c21c
)
Added debugging statements to the send_command function.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 19 Nov 2009 11:30:15 +0000
(12:30 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 19 Nov 2009 11:30:15 +0000
(12:30 +0100)
src/main.c
patch
|
blob
|
history
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);
+ 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);