summaryrefslogtreecommitdiffstats
path: root/runtime/print.c
diff options
context:
space:
mode:
authortrz <trz>2006-04-11 20:52:31 +0000
committertrz <trz>2006-04-11 20:52:31 +0000
commit548d7cea9531c99316cdd02c77229a9d6927a737 (patch)
treeccd8b3cc434c2fdc67ac71b64b67a212d2249496 /runtime/print.c
parenta7fbfd4725aab6919e087162e8ff14ea5ef33673 (diff)
downloadsystemtap-steved-548d7cea9531c99316cdd02c77229a9d6927a737.tar.gz
systemtap-steved-548d7cea9531c99316cdd02c77229a9d6927a737.tar.xz
systemtap-steved-548d7cea9531c99316cdd02c77229a9d6927a737.zip
fix TIMESTAMP_SIZE conflict with Suse kernels
Diffstat (limited to 'runtime/print.c')
-rw-r--r--runtime/print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/print.c b/runtime/print.c
index 9addde60..0ba173ba 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -72,12 +72,12 @@ void _stp_print_flush (void)
#else /* STP_RELAYFS */
/* size of timestamp, in bytes, including space */
-#define TIMESTAMP_SIZE (sizeof(int))
-#define STP_PRINT_BUF_START (TIMESTAMP_SIZE)
+#define STP_TIMESTAMP_SIZE (sizeof(int))
+#define STP_PRINT_BUF_START (STP_TIMESTAMP_SIZE)
/** Size of buffer, not including terminating NULL */
#ifndef STP_PRINT_BUF_LEN
-#define STP_PRINT_BUF_LEN (8192 - TIMESTAMP_SIZE - 1)
+#define STP_PRINT_BUF_LEN (8192 - STP_TIMESTAMP_SIZE - 1)
#endif
static char _stp_pbuf[NR_CPUS][STP_PRINT_BUF_LEN + STP_PRINT_BUF_START + 1];
@@ -99,7 +99,7 @@ void _stp_print_flush (void)
return;
*((int *)buf) = _stp_seq_inc();
- ret = _stp_transport_write(buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
+ ret = _stp_transport_write(buf, _stp_pbuf_len[cpu] + STP_TIMESTAMP_SIZE + 1);
if (unlikely(ret < 0)) {
#if 0
if (!atomic_read(&_stp_transport_failures))