mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
More useful debug prints
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2607fea2de
commit
1527cd0d05
1 changed files with 2 additions and 2 deletions
|
@ -1466,12 +1466,10 @@ static void dive_site_start(void)
|
||||||
if (cur_dive_site)
|
if (cur_dive_site)
|
||||||
return;
|
return;
|
||||||
cur_dive_site = calloc(1, sizeof(struct dive_site));
|
cur_dive_site = calloc(1, sizeof(struct dive_site));
|
||||||
fprintf(stderr, "allocated cur_dive_site\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dive_site_end(void)
|
static void dive_site_end(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "done with dive_site\n");
|
|
||||||
if (!cur_dive_site)
|
if (!cur_dive_site)
|
||||||
return;
|
return;
|
||||||
if (cur_dive_site->uuid) {
|
if (cur_dive_site->uuid) {
|
||||||
|
@ -1480,6 +1478,8 @@ static void dive_site_end(void)
|
||||||
ds->uuid = cur_dive_site->uuid;
|
ds->uuid = cur_dive_site->uuid;
|
||||||
ds->notes = cur_dive_site->notes;
|
ds->notes = cur_dive_site->notes;
|
||||||
ds->description = cur_dive_site->description;
|
ds->description = cur_dive_site->description;
|
||||||
|
if (verbose > 3)
|
||||||
|
printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name);
|
||||||
}
|
}
|
||||||
free(cur_dive_site);
|
free(cur_dive_site);
|
||||||
cur_dive_site = NULL;
|
cur_dive_site = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue