aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-07-23 14:40:58 -0400
committerB. Watson <yalhcru@gmail.com>2021-07-23 14:40:58 -0400
commit88a4f92c706556b9a413f725d8827e7dbf8c904c (patch)
treed750706056864c59215e2730037bcd1319ea720c
parent41957bd369ef39697aba39d5b60297bbbbf44f7f (diff)
downloadslowbaud-88a4f92c706556b9a413f725d8827e7dbf8c904c.tar.gz
cleanup debug output
-rw-r--r--slowbaud.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/slowbaud.c b/slowbaud.c
index e0ad048..54bc8de 100644
--- a/slowbaud.c
+++ b/slowbaud.c
@@ -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]) {