diff options
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c index 855de4725..3592f7f65 100644 --- a/src/misc.c +++ b/src/misc.c @@ -751,6 +751,28 @@ char *myStrSubString(const char *src, int start, int end) /*************************************************************************/ +void protocol_debug(char *source, char *cmd, int argc, char **argv)
+{
+ int i;
+
+ if (protocoldebug) {
+ if (source)
+ alog("debug: Source %s", source);
+ if (cmd)
+ alog("debug: Token %s", cmd);
+ if (argc) {
+ for (i = 0; i < argc; i++) {
+ alog("debug: av[%d] = %s", i, argv[i]);
+ }
+ } else {
+ alog("debug: av[0] = NULL");
+ }
+ }
+ return;
+}
+
+/*************************************************************************/ + /** * Clean up the buffer for extra spaces * @param str to clean up |