diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2009-12-18 13:47:57 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2009-12-18 13:47:57 -0800 |
commit | 68b8831fd6d994683082349816755459d75af918 (patch) | |
tree | c093e427d9948a4f281a17543221184fba6015be | |
parent | 4102367297550bdf3f56490dec07e722e6ac20c3 (diff) |
add PID to gstreamer plugin logging.
-rw-r--r-- | indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h b/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h index 2244ccc146..799808aa8b 100644 --- a/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h +++ b/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h @@ -37,10 +37,16 @@ #include <cstdio> +extern "C" { +#include <sys/types.h> +#include <unistd.h> +} + ///////////////////////////////////////////////////////////////////////// // Debug/Info/Warning macros. #define MSGMODULEFOO "(media plugin)" #define STDERRMSG(...) do{\ + fprintf(stderr, " pid:%d: ", (int)getpid());\ fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\ fprintf(stderr, __VA_ARGS__);\ fputc('\n',stderr);\ |