diff options
author | B. Watson <yalhcru@gmail.com> | 2021-07-23 14:40:58 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-07-23 14:40:58 -0400 |
commit | 88a4f92c706556b9a413f725d8827e7dbf8c904c (patch) | |
tree | d750706056864c59215e2730037bcd1319ea720c | |
parent | 41957bd369ef39697aba39d5b60297bbbbf44f7f (diff) | |
download | slowbaud-88a4f92c706556b9a413f725d8827e7dbf8c904c.tar.gz |
cleanup debug output
-rw-r--r-- | slowbaud.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -297,12 +297,13 @@ int main(int argc, char **argv) { loss from overhead actually offsets the extra bit of speed. */ interval = (unsigned long)(1000000.0L / ((double)bps / 10.0L)); - if(debug) fprintf(stderr, "interval %ld us\n", interval); #ifdef FRACTIONAL_USEC frac_us_num = (double)FRAC_US_DENOM * ((1000000.0L / ((double)bps / 10.0L) - interval)); - fprintf(stderr, "%d %d\n", interval, frac_us_num); - // srandom(NOW_USEC()); + if(debug) fprintf(stderr, "interval %ld + %d/%d us\n", interval, frac_us_num, FRAC_US_DENOM); + // srandom(NOW_USEC()); // don't think we should do this +#else + if(debug) fprintf(stderr, "interval %ld us\n", interval); #endif if(*argv && argv[0][0] == '-' && argv[0][1] == '-' && !argv[0][2]) { |