csdr: better error message on missing function, nmux: switching debug messages off

feature/nmux
ha7ilm 2017-01-15 21:09:24 +01:00
rodzic 687f6423ed
commit ada8a692d4
4 zmienionych plików z 7 dodań i 7 usunięć

5
csdr.c
Wyświetl plik

@ -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;
}

Wyświetl plik

@ -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

2
nmux.h
Wyświetl plik

@ -14,7 +14,7 @@
#include "tsmpool.h"
#define MSG_START "nmux: "
#define NMUX_DEBUG 1
#define NMUX_DEBUG 0
typedef enum client_status_e
{

Wyświetl plik

@ -6,7 +6,7 @@
#include <vector>
#include <pthread.h>
#define TSM_DEBUG 1
#define TSM_DEBUG 0
#if TSM_DEBUG == 1
#include <stdio.h>
#endif