From ada8a692d4d3df14a9e8a11fa17a2eb552cdbd64 Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Sun, 15 Jan 2017 21:09:24 +0100 Subject: [PATCH] csdr: better error message on missing function, nmux: switching debug messages off --- csdr.c | 5 +++-- nmux-todo.md | 5 ++--- nmux.h | 2 +- tsmpool.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/csdr.c b/csdr.c index c1efeaa..28579fe 100644 --- a/csdr.c +++ b/csdr.c @@ -1917,8 +1917,9 @@ int main(int argc, char *argv[]) { return 0; } - - return badsyntax("function name given in argument 1 does not exist. Possible causes:\n- You mistyped the commandline.\n- You need to update csdr to a newer version (if available)."); + + fprintf(stderr,"csdr: function name given in argument 1 (%s) does not exist. Possible causes:\n- You mistyped the commandline.\n- You need to update csdr to a newer version (if available).", argv[1]); + return -1; } diff --git a/nmux-todo.md b/nmux-todo.md index 750ec79..8e011f7 100644 --- a/nmux-todo.md +++ b/nmux-todo.md @@ -1,8 +1,7 @@ +Remove nmux repo, it will rather be part of csdr Try in OpenWebRX Add UDP support Evaluate performance against ncat Remove debug messages -Document in csdr +Document README.md Test with a limited number of people -Announce on blog - diff --git a/nmux.h b/nmux.h index faf95ef..038bc51 100644 --- a/nmux.h +++ b/nmux.h @@ -14,7 +14,7 @@ #include "tsmpool.h" #define MSG_START "nmux: " -#define NMUX_DEBUG 1 +#define NMUX_DEBUG 0 typedef enum client_status_e { diff --git a/tsmpool.h b/tsmpool.h index daf5592..3db486c 100644 --- a/tsmpool.h +++ b/tsmpool.h @@ -6,7 +6,7 @@ #include #include -#define TSM_DEBUG 1 +#define TSM_DEBUG 0 #if TSM_DEBUG == 1 #include #endif