Commit 741d14af authored by Federico Vaga's avatar Federico Vaga

sw:tool: improve help messages

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 290d5d85
......@@ -22,7 +22,8 @@ void help(char *name)
" wr - sets the time source to White Rabbit.\n"
" host - sets the time source to local oscillator and coarsely\n"
" synchronizes the card to the system clock.\n"
" seconds:[nanoseconds]: - sets local time to the given value.\n");
" seconds:[nanoseconds]: - sets local time to the given value.\n"
" and <dev> is the device ID (hexadecimal)\n");
exit(1);
}
......
......@@ -42,7 +42,7 @@ static const char help_msg[] =
"-f Source file where to read calibration data from\n"
"-o Offset in bytes within the file (default 0)\n"
"Write options:\n"
"-D FMC FDelay Target Device ID\n"
"-D FMC FDelay Target Device ID (hexadecimal)\n"
"\n";
static inline void fmc_fdelay_calibration_version(void)
......
......@@ -18,6 +18,7 @@ void help(char *name)
fprintf(stderr, "%s: Use \"%s [-V] [-d <dev>] [<opts>]\n",
name, name);
fprintf(stderr, " options:\n"
" -d <dev> device ID (hexadecimal)\n"
" -c <count> default is 0 and means forever\n"
" -n nonblocking: only empty buffer\n"
" -r raw mode: show hex timestamps\n"
......
......@@ -20,6 +20,7 @@ void help(char *name)
fprintf(stderr, "%s: Use \"%s [-V] [-d <dev>] [<opts>]\n",
name, name);
fprintf(stderr, " options:\n"
" -d <dev> device ID (hexadecimal)\n"
" -o <output> ouput channel: 1..4 (default 1)\n"
" -c <count> default is 0 and means forever\n"
" -m <mode> \"pulse\" (default), \"delay\", \"disable\"\n"
......
......@@ -15,7 +15,8 @@ void help(char *name)
fprintf(stderr, "fmc-fdelay-status: reports channel programming\n");
fprintf(stderr, "Use: \"%s [-V] [-d <dev>] [-r]\"\n", name);
fprintf(stderr, " -r: display raw hardware configuration");
fprintf(stderr, " -d <dev>: device ID (hexadecimal)\n");
fprintf(stderr, " -r : display raw hardware configuration\n");
exit(1);
}
......
......@@ -14,6 +14,7 @@ void help(char *name)
{
fprintf(stderr, "%s: Use \"%s [-V] [-d <dev>] [on|off]\n",
name, name);
fprintf(stderr, " -d <dev>: device ID (hexadecimal)\n");
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment