Skip to content

Commit ada8a69

Browse files
committed
csdr: better error message on missing function, nmux: switching debug messages off
1 parent 687f642 commit ada8a69

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

csdr.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1917,8 +1917,9 @@ int main(int argc, char *argv[])
19171917
{
19181918
return 0;
19191919
}
1920-
1921-
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).");
1920+
1921+
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]);
1922+
return -1;
19221923

19231924
}
19241925

nmux-todo.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
Remove nmux repo, it will rather be part of csdr
12
Try in OpenWebRX
23
Add UDP support
34
Evaluate performance against ncat
45
Remove debug messages
5-
Document in csdr
6+
Document README.md
67
Test with a limited number of people
7-
Announce on blog
8-

nmux.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "tsmpool.h"
1515

1616
#define MSG_START "nmux: "
17-
#define NMUX_DEBUG 1
17+
#define NMUX_DEBUG 0
1818

1919
typedef enum client_status_e
2020
{

tsmpool.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <vector>
77
#include <pthread.h>
88

9-
#define TSM_DEBUG 1
9+
#define TSM_DEBUG 0
1010
#if TSM_DEBUG == 1
1111
#include <stdio.h>
1212
#endif

0 commit comments

Comments
 (0)