Update tools/moo-ristsender.c

This commit is contained in:
2026-06-22 10:18:59 +00:00
parent 0d416b9700
commit 2e8cd5072b
+4 -12
View File
@@ -188,9 +188,7 @@ static struct option long_options[] = {
{ 0, 0, 0, 0 },
};
/* The help string is split into three parts to stay under the C99 4095-char limit */
static const char help_str_part1[] =
"Usage: %s [OPTIONS] \nWhere OPTIONS are:\n"
const char help_str[] = "Usage: %s [OPTIONS] \nWhere OPTIONS are:\n"
" -i | --inputurl udp://... or rtp://... * | Comma separated list of input udp or rtp URLs |\n"
" | Use tun://@ to read udp data from a tun device defined |\n"
" | using the -t option |\n"
@@ -202,9 +200,7 @@ static const char help_str_part1[] =
" -n | --null-packet-deletion | Enable NPD, receiver needs to support this! |\n"
" -S | --statsinterval value (ms) | Interval at which stats get printed, 0 to disable |\n"
" -v | --verbose-level value | To disable logging: -1, log levels match syslog levels |\n"
" -r | --remote-logging IP:PORT | Send logs and stats to this IP:PORT using udp messages |\n";
static const char help_str_part2[] =
" -r | --remote-logging IP:PORT | Send logs and stats to this IP:PORT using udp messages |\n"
#if HAVE_SRP_SUPPORT
" -F | --srpfile filepath | When in listening mode, use this file to hold the list |\n"
" | of usernames and passwords to validate against. Use the |\n"
@@ -241,9 +237,7 @@ static const char help_str_part2[] =
"Default values: %s \n"
" --profile 1 \\\n"
" --statsinterval 1000 \\\n"
" --verbose-level 6 \n";
static const char help_str_fifo[] =
" --verbose-level 6 \n"
"\n"
"Runtime Control (via FIFO " CONTROL_FIFO "):\n"
" echo \"list\" > " CONTROL_FIFO " # List all peers\n"
@@ -656,9 +650,7 @@ static void input_udp_sockerr(struct evsocket_ctx *evctx, int fd, short revents,
static void usage(char *cmd)
{
rist_log(&logging_settings, RIST_LOG_INFO, "%s\n%s%s%s version %s libRIST library: %s API version: %s\n",
cmd, help_str_part1, help_str_part2, help_str_fifo,
RISTSENDER_VERSION, librist_version(), librist_api_version());
rist_log(&logging_settings, RIST_LOG_INFO, "%s\n%s version %s libRIST library: %s API version: %s\n", cmd, help_str, RISTSENDER_VERSION, librist_version(), librist_api_version());
exit(1);
}