Annotation of multiplexer/error.c, revision 1.3
1.1 oskar 1: /*
2: * ISO 13818 stream multiplexer
3: * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin
4: * Author: Oskar Schirmer (oskar@convergence.de)
5: */
6:
7: /*
8: * Module: Error
9: * Purpose: Error and debug information provision.
1.2 oskar 10: * Other functions related to stderr.
1.1 oskar 11: */
12:
13: #include "error.h"
14:
15: char *warn_level_name[] = {
16: "Error",
17: "Warning",
18: "Important",
19: "Information",
20: "Secondary",
21: "Debug"
22: };
23:
24: char *warn_module_name[] = {
25: "Init",
26: "Dispatch",
27: "Error",
28: "Input",
29: "Output",
30: "Command",
31: "Global",
32: "Split PES",
33: "Split PS",
34: "Split TS",
35: "Splice PS",
36: "Splice TS",
1.2 oskar 37: "Splice",
1.1 oskar 38: "Descr"
39: };
40:
41: int verbose_level;
42:
43: void do_warn (int level1,
44: char *text,
45: int module1,
46: int func,
47: int numb,
48: long value)
49: {
1.3 ! oskar 50: fprintf (stderr, "%s: %s (%s,%02X,%02X,%08lX/%ld)\n",
1.1 oskar 51: warn_level_name[level1],
1.3 ! oskar 52: text, warn_module_name[module1], func, numb, value, value);
1.1 oskar 53: }
54:
LinuxTV legacy CVS <linuxtv.org/cvs>