summaryrefslogtreecommitdiffstats
path: root/runtime/print.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-09-22 16:37:51 +0000
committerhunt <hunt>2006-09-22 16:37:51 +0000
commit43d7488cffb2e6eab87af36b8db51e60acb2f5c5 (patch)
tree89546c3f171fd4a2dda27c241d9c53117895512f /runtime/print.c
parentb78daaff85e81dc2a08b4f920ed8c9c8500b5020 (diff)
downloadsystemtap-steved-43d7488cffb2e6eab87af36b8db51e60acb2f5c5.tar.gz
systemtap-steved-43d7488cffb2e6eab87af36b8db51e60acb2f5c5.tar.xz
systemtap-steved-43d7488cffb2e6eab87af36b8db51e60acb2f5c5.zip
2006-09-22 Martin Hunt <hunt@redhat.com>
* print.c: Replace STP_PRINT_BUF_LEN with STP_BUFFER_SIZE. * string.c: Ditto.
Diffstat (limited to 'runtime/print.c')
-rw-r--r--runtime/print.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/print.c b/runtime/print.c
index 674bd4a0..904104f8 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -41,14 +41,11 @@
#define STP_PRINT_BUF_START (STP_TIMESTAMP_SIZE)
-#ifndef STP_PRINT_BUF_LEN
-#define STP_PRINT_BUF_LEN 8192
-#endif
typedef struct __stp_pbuf {
uint32_t len; /* bytes used in the buffer */
char timestamp[STP_TIMESTAMP_SIZE];
- char buf[STP_PRINT_BUF_LEN];
+ char buf[STP_BUFFER_SIZE];
} _stp_pbuf;
void *Stp_pbuf = NULL;
@@ -118,10 +115,10 @@ static void * _stp_reserve_bytes (int numbytes)
static void * _stp_reserve_bytes (int numbytes)
{
_stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id());
- int size = STP_PRINT_BUF_LEN - pb->len;
+ int size = STP_BUFFER_SIZE - pb->len;
void * ret;
- if (unlikely(numbytes == 0 || numbytes > STP_PRINT_BUF_LEN))
+ if (unlikely(numbytes == 0 || numbytes > STP_BUFFER_SIZE))
return NULL;
if (numbytes > size)