aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strbuf.c b/strbuf.c
index 73cd9b8..704f702 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -85,8 +85,8 @@ strbuf_t *strbuf_new(size_t len)
85static inline void debug_stats(strbuf_t *s) 85static inline void debug_stats(strbuf_t *s)
86{ 86{
87 if (s->debug) { 87 if (s->debug) {
88 fprintf(stderr, "strbuf(%lx) reallocs: %d, length: %zd, size: %zd\n", 88 fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n",
89 (long)s, s->reallocs, s->length, s->size); 89 s, s->reallocs, s->length, s->size);
90 } 90 }
91} 91}
92 92
@@ -164,8 +164,8 @@ void strbuf_resize(strbuf_t *s, size_t len)
164 newsize = calculate_new_size(s, len); 164 newsize = calculate_new_size(s, len);
165 165
166 if (s->debug > 1) { 166 if (s->debug > 1) {
167 fprintf(stderr, "strbuf(%lx) resize: %zd => %zd\n", 167 fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n",
168 (long)s, s->size, newsize); 168 s, s->size, newsize);
169 } 169 }
170 170
171 s->size = newsize; 171 s->size = newsize;