summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-04 11:56:43 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-04 11:56:43 -0800
commit1b22ac16f2ae22ad49a1c6bdd7b2fd9f6997e35f (patch)
treead5462c64c50fe78b6d09d41fabde860378db4ec
parent65c85b39ea8bd6cfcb1ab8a7b70726872bad461a (diff)
downloadsubsurface-1b22ac16f2ae22ad49a1c6bdd7b2fd9f6997e35f.tar.gz
Clean up DEBUG code
It's still a mess (and the symbols aren't used consistently), but it's a tiny bit more logical... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--divelist.c8
-rw-r--r--profile.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/divelist.c b/divelist.c
index 88aff9a49..f13f0c48f 100644
--- a/divelist.c
+++ b/divelist.c
@@ -872,17 +872,17 @@ void init_decompression(struct dive *dive)
if (!deco_init) {
clear_deco(surface_pressure);
deco_init = TRUE;
-#if DEBUG & 16
+#if DECO_CALC_DEBUG & 2
dump_tissues();
#endif
}
add_dive_to_deco(pdive);
-#if DEBUG & 16
+#if DECO_CALC_DEBUG & 2
printf("added dive #%d\n", pdive->number);
dump_tissues();
#endif
add_segment(surface_pressure, &air, surface_time, 0.0);
-#if DEBUG & 16
+#if DECO_CALC_DEBUG & 2
printf("after surface intervall of %d:%02u\n", FRACTION(surface_time,60));
dump_tissues();
#endif
@@ -890,7 +890,7 @@ void init_decompression(struct dive *dive)
if (!deco_init) {
double surface_pressure = dive->surface_pressure.mbar ? dive->surface_pressure.mbar / 1000.0 : 1.013;
clear_deco(surface_pressure);
-#if DEBUG & 16
+#if DECO_CALC_DEBUG & 2
printf("no previous dive\n");
dump_tissues();
#endif
diff --git a/profile.c b/profile.c
index cabf49162..2725c27d9 100644
--- a/profile.c
+++ b/profile.c
@@ -1766,7 +1766,7 @@ static struct plot_info *create_plot_info(struct dive *dive, struct divecomputer
entry->ceiling = deco_allowed_depth(ceiling_pressure, surface_pressure, dive, !prefs.calc_ceiling_3m_incr);
}
}
-#if DECO_CALC_DEBUG
+#if DECO_CALC_DEBUG & 1
dump_tissues();
#endif