#include "probes_demux.h"
static int verbose;
+static int parser_debug;
static FILE *finfo;
static const unsigned int DEFAULT_CHANNELS = 4;
"-b\tbuffer size (default 8192)\n"
"-f\tfragments (default 4)\n"
"-v\tverbose mode\n"
+ "-D\tenable parser debug messages\n"
"-l\tlength of record in seconds (0 = unlimited)\n"
"-h\tPrints this help list\n\n"
"-C\tSpecify the number of channels (default %u)\n"
fprintf(stderr, "ERR: %s\n", compress_get_error(compress));
goto buf_exit;
}
- if ((unsigned int)read != size) {
+ if (parser_debug && (unsigned int)read != size) {
fprintf(stderr, "We read %d, DSP sent %d\n",
size, read);
}
verbose = 0;
finfo = stderr;
- while ((c = getopt(argc, argv, "hvl:R:C:F:b:f:c:d:")) != -1) {
+ while ((c = getopt(argc, argv, "hvDl:R:C:F:b:f:c:d:")) != -1) {
switch (c) {
case 'h':
usage();
case 'v':
verbose = 1;
break;
+ case 'D':
+ parser_debug = 1;
+ break;
case 'l':
length = strtol(optarg, NULL, 10);
break;