summaryrefslogtreecommitdiff
path: root/parseutil/dcfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'parseutil/dcfd.c')
-rw-r--r--parseutil/dcfd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/parseutil/dcfd.c b/parseutil/dcfd.c
index 969c1e3863c7..0823f8ec9748 100644
--- a/parseutil/dcfd.c
+++ b/parseutil/dcfd.c
@@ -121,9 +121,9 @@
#define LPRINTF if (interactive && loop_filter_debug) printf
#ifdef DEBUG
-#define dprintf(_x_) LPRINTF _x_
+#define DPRINTF(_x_) LPRINTF _x_
#else
-#define dprintf(_x_)
+#define DPRINTF(_x_)
#endif
#ifdef DECL_ERRNO
@@ -595,7 +595,7 @@ cvt_rawdcf(
/*
* invalid character (no consecutive bit sequence)
*/
- dprintf(("parse: cvt_rawdcf: character check for 0x%x@%ld FAILED\n",
+ DPRINTF(("parse: cvt_rawdcf: character check for 0x%x@%ld FAILED\n",
(u_int)*s, (long)(s - buffer)));
*s = (unsigned char)~0;
rtc = CVT_FAIL|CVT_BADFMT;
@@ -616,7 +616,7 @@ cvt_rawdcf(
cutoff = 4; /* doesn't really matter - it'll fail anyway, but gives error output */
}
- dprintf(("parse: cvt_rawdcf: average bit count: %d\n", cutoff));
+ DPRINTF(("parse: cvt_rawdcf: average bit count: %d\n", cutoff));
lowmax = 0; /* weighted sum */
highmax = 0; /* bitcount */
@@ -624,14 +624,14 @@ cvt_rawdcf(
/*
* collect weighted sum of lower bits (left of initial guess)
*/
- dprintf(("parse: cvt_rawdcf: histogram:"));
+ DPRINTF(("parse: cvt_rawdcf: histogram:"));
for (i = 0; i <= cutoff; i++)
{
lowmax += histbuf[i] * i;
highmax += histbuf[i];
- dprintf((" %d", histbuf[i]));
+ DPRINTF((" %d", histbuf[i]));
}
- dprintf((" <M>"));
+ DPRINTF((" <M>"));
/*
* round up
@@ -662,9 +662,9 @@ cvt_rawdcf(
{
highmax+=histbuf[i] * i;
cutoff +=histbuf[i];
- dprintf((" %d", histbuf[i]));
+ DPRINTF((" %d", histbuf[i]));
}
- dprintf(("\n"));
+ DPRINTF(("\n"));
/*
* determine upper maximum (weighted sum / bit count)
@@ -716,7 +716,7 @@ cvt_rawdcf(
*/
cutoff = (cutoff + span) / 2;
- dprintf(("parse: cvt_rawdcf: lower maximum %d, higher maximum %d, cutoff %d\n", lowmax, highmax, cutoff));
+ DPRINTF(("parse: cvt_rawdcf: lower maximum %d, higher maximum %d, cutoff %d\n", lowmax, highmax, cutoff));
/*
* convert the bit counts to symbolic 1/0 information for data conversion