aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-29 10:36:59 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-29 10:36:59 +0300
commita2528b04a987bdbff4763edd2258622ad3141024 (patch)
tree18fafe3ac7c1208dd7e12574fc8cb0093301cd5a /src
parent120727f7c5b36bddaa3ef232dd9b105148ac7433 (diff)
downloadgdbm-a2528b04a987bdbff4763edd2258622ad3141024.tar.gz
gdbm-a2528b04a987bdbff4763edd2258622ad3141024.tar.bz2
Minor changes
* src/gdbmtool.c: Reduce memory consuption in -random mode. Some minor bugfixes as well.
Diffstat (limited to 'src')
-rw-r--r--src/gdbmtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gdbmtool.c b/src/gdbmtool.c
index 6096c07..feca51e 100644
--- a/src/gdbmtool.c
+++ b/src/gdbmtool.c
@@ -299,12 +299,12 @@ _gdbm_print_bucket_cache (FILE *fp, GDBM_FILE dbf)
299 if (dbf->bucket_cache != NULL) 299 if (dbf->bucket_cache != NULL)
300 { 300 {
301 fprintf (fp, 301 fprintf (fp,
302 _("Bucket Cache (size %zu):\n Index: Address Changed Data_Hash \n"), 302 _("Bucket Cache (size %zu):\n Index: Address Changed Data_Hash \n"),
303 dbf->cache_size); 303 dbf->cache_size);
304 for (index = 0; index < dbf->cache_size; index++) 304 for (index = 0; index < dbf->cache_size; index++)
305 { 305 {
306 changed = dbf->bucket_cache[index].ca_changed; 306 changed = dbf->bucket_cache[index].ca_changed;
307 fprintf (fp, " %5d: %7lu %7s %x\n", 307 fprintf (fp, " %5d: %15lu %7s %x\n",
308 index, 308 index,
309 (unsigned long) dbf->bucket_cache[index].ca_adr, 309 (unsigned long) dbf->bucket_cache[index].ca_adr,
310 (changed ? _("True") : _("False")), 310 (changed ? _("True") : _("False")),

Return to:

Send suggestions and report system problems to the System administrator.