From 2b4115d712e4cf82f7adeb9d3e59fd7e1d376e53 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sun, 11 Feb 2018 23:23:59 +0200 Subject: [PATCH] dump_tissues: fix missing 'struct deco_state' argument With DECO_CALC_DEBUG != 0, divelist.c and profile.c have calls to dump_tissues() without passing a 'struct deco_state' argument. Fixes #1105 Signed-off-by: Lubomir I. Ivanov --- core/divelist.c | 2 +- core/profile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/divelist.c b/core/divelist.c index 7c6259a6b..1f76246c9 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -572,7 +572,7 @@ int init_decompression(struct deco_state *ds, struct dive *dive) deco_init = true; #if DECO_CALC_DEBUG & 2 printf("Tissues after init:\n"); - dump_tissues(); + dump_tissues(ds); #endif } else { diff --git a/core/profile.c b/core/profile.c index e463c9c2b..78f3b2f57 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1147,7 +1147,7 @@ void calculate_deco_information(struct deco_state *ds, struct deco_state *planne } free(cache_data_initial); #if DECO_CALC_DEBUG & 1 - dump_tissues(); + dump_tissues(ds); #endif unlock_planner(); }