summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-25 13:33:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-25 13:33:32 +0000
commitbf0bee4f86ec14e5c00e1d3d9586ef351d5f8cf7 (patch)
tree136100803e82a6d2b6c22e09bd549a02d7b9948f /include/common.h
parente88f467a46f2fa7b79fc81c4337d53eb466ca8f5 (diff)
downloadzabbix-bf0bee4f86ec14e5c00e1d3d9586ef351d5f8cf7.tar.gz
zabbix-bf0bee4f86ec14e5c00e1d3d9586ef351d5f8cf7.tar.xz
zabbix-bf0bee4f86ec14e5c00e1d3d9586ef351d5f8cf7.zip
- fixed compilation for solaris (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4180 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/common.h b/include/common.h
index e049efe7..71a95037 100644
--- a/include/common.h
+++ b/include/common.h
@@ -20,13 +20,8 @@
#ifndef ZABBIX_COMMON_H
#define ZABBIX_COMMON_H
-#if defined(_WINDOWS)
-# define SDI(msg) fprintf(stderr, "DEBUG INFO: %s\n", msg); fflush(stderr);
-# define SDI2(msg,p1) fprintf(stderr, "DEBUG INFO: " msg "\n", p1); fflush(stderr);
-#else
-# define SDI(msg) fprintf(stderr, "%6i:DEBUG INFO: %s\n", getpid(), msg); fflush(stderr);
-# define SDI2(msg,p1) fprintf(stderr, "%6i:DEBUG INFO: " msg "\n", getpid(), p1); fflush(stderr);
-#endif
+#define SDI(msg) fprintf(stderr, "%6li:DEBUG INFO: %s\n", zbx_get_thread_id(), msg); fflush(stderr);
+#define SDI2(msg,p1) fprintf(stderr, "%6li:DEBUG INFO: " msg "\n", zbx_get_thread_id(), p1); fflush(stderr);
#if defined(ENABLE_CHECK_MEMOTY)
# include "crtdbg.h"