From a73744be94bff359c1c678068089d1f21c089f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 11 Oct 1998 23:07:30 +0200 Subject: [PATCH] debug_dump_pike_string() now reports the string shift. Rev: src/stralloc.c:1.41 --- src/stralloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stralloc.c b/src/stralloc.c index 44d58d66d3..5be68f0af8 100644 --- a/src/stralloc.c +++ b/src/stralloc.c @@ -15,7 +15,7 @@ #include <ctype.h> -RCSID("$Id: stralloc.c,v 1.40 1998/10/11 11:18:53 hubbe Exp $"); +RCSID("$Id: stralloc.c,v 1.41 1998/10/11 21:07:30 grubba Exp $"); #define BEGIN_HASH_SIZE 997 #define MAX_AVG_LINK_LENGTH 3 @@ -810,10 +810,11 @@ struct pike_string *debug_findstring(const struct pike_string *foo) void debug_dump_pike_string(struct pike_string *s, INT32 max) { INT32 e; - fprintf(stderr,"0x%p: %ld refs, len=%ld, hval=%lux (%lx)\n", + fprintf(stderr,"0x%p: %ld refs, len=%ld, size_shift=%d, hval=%lux (%lx)\n", s, (long)s->refs, (long)s->len, + s->size_shift, (unsigned long)s->hval, (unsigned long)StrHash(s->str, s->len)); fprintf(stderr," \""); -- GitLab