File:  [DVB] / multiplexer / error.c
Revision 1.2: download - view: text, annotated - select for diffs
Wed May 2 16:27:12 2001 UTC (23 years, 1 month ago) by oskar
Branches: MAIN
CVS tags: HEAD
Bug fix in time hopping with non-timed i/o.
New command '--statistics' to feed back status of output buffers.

/*
 * ISO 13818 stream multiplexer
 * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin
 * Author: Oskar Schirmer (oskar@convergence.de)
 */

/*
 * Module:  Error
 * Purpose: Error and debug information provision.
 *          Other functions related to stderr.
 */

#include "error.h"

char *warn_level_name[] = {
  "Error",
  "Warning",
  "Important",
  "Information",
  "Secondary",
  "Debug"
};

char *warn_module_name[] = {
  "Init",
  "Dispatch",
  "Error",
  "Input",
  "Output",
  "Command",
  "Global",
  "Split PES",
  "Split PS",
  "Split TS",
  "Splice PS",
  "Splice TS",
  "Splice",
  "Descr"
};

int verbose_level;

void do_warn (int level1,
    char *text,
    int module1,
    int func,
    int numb,
    long value)
{
  fprintf (stderr,"%s: %s (%s,%02X,%02X,%08lX/%ld)\n",
    warn_level_name[level1],
    text,warn_module_name[module1],func,numb,value,value);
}


LinuxTV legacy CVS <linuxtv.org/cvs>