]> mj.ucw.cz Git - libucw.git/commitdiff
Added a debugging hack.
authorMartin Mares <mj@ucw.cz>
Fri, 7 Sep 2007 12:31:37 +0000 (14:31 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 7 Sep 2007 12:31:37 +0000 (14:31 +0200)
lib/sorter/array.c

index a6c217e8b2dca296f86edc5a79cef8630f71508c..d9f5f52f3f2ecb3763ba335bb08fc2b4a95b7ec2 100644 (file)
@@ -24,6 +24,10 @@ asort_radix(struct asort_context *ctx, void *array, void *buffer, uns num_elts,
   uns shift = (hash_bits > ctx->radix_bits) ? (hash_bits - ctx->radix_bits) : 0;
   uns cnt[buckets];
 
+#if 0
+  static int reported[64];
+  if (!reported[hash_bits]++)
+#endif
   DBG(">>> n=%d h=%d s=%d sw=%d", num_elts, hash_bits, shift, swapped_output);
 
   bzero(cnt, sizeof(cnt));