[Hat] Add debug printing for resResult in hat-c.c
nlavine at haverford.edu
nlavine at haverford.edu
Thu Jun 19 09:10:42 EDT 2008
I found it somewhat disconcerting when I looked at the debugging output
from hat-c.c that it showed many entResults and no resResults. This may be
an issue of personal style, but this patch was useful for me. It adds a
print in resResult to match the one in entResult.
Noah Lavine
--- hat-c.c 2006-11-15 05:45:17.000000000 -0500
+++ hat-c.c 2008-06-15 18:18:14.247202914 -0400
@@ -1805,6 +1805,7 @@
LastExp = node;
node &= hiddenMask;
result &= hiddenMask;
+ HIDE(fprintf(stderr,"\tresResult 0x%x 0x%x 0x%x 0x%x\n", node, result,
use, ntohl(node)+1+sizeof(FileOffset)+(use?sizeof(FileOffset):0));)
hat_reduce(ntohl(node),1+sizeof(FileOffset)+(use?sizeof(FileOffset):0),
result);
}
More information about the Hat
mailing list