aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h')
-rw-r--r--linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
index e31d4a3..04976b9 100644
--- a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
+++ b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
@@ -35,10 +35,16 @@
35 35
36#include <cstdio> 36#include <cstdio>
37 37
38extern "C" {
39#include <sys/types.h>
40#include <unistd.h>
41}
42
38///////////////////////////////////////////////////////////////////////// 43/////////////////////////////////////////////////////////////////////////
39// Debug/Info/Warning macros. 44// Debug/Info/Warning macros.
40#define MSGMODULEFOO "(media plugin)" 45#define MSGMODULEFOO "(media plugin)"
41#define STDERRMSG(...) do{\ 46#define STDERRMSG(...) do{\
47 fprintf(stderr, " pid:%d: ", (int)getpid());\
42 fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\ 48 fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\
43 fprintf(stderr, __VA_ARGS__);\ 49 fprintf(stderr, __VA_ARGS__);\
44 fputc('\n',stderr);\ 50 fputc('\n',stderr);\