From 55cc0ee9c158607378f8277143eab731c6f91e6c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 28 Sep 2015 21:41:32 -0400 Subject: Fix incorrect and confusing warning message In verbose mode we wanted to tell the user if they had a reference to a non-existant dive site that we removed for consistency. Except the condition was wrong and the warning was printed for every VALID dive site reference. Oops. Signed-off-by: Dirk Hohndel --- save-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-git.c b/save-git.c index 1228b7762..9aa7bfd0e 100644 --- a/save-git.c +++ b/save-git.c @@ -405,7 +405,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b) save_tags(b, dive->tag_list); cond_put_format(dive->dive_site_uuid && get_dive_site_by_uuid(dive->dive_site_uuid), b, "divesiteid %08x\n", dive->dive_site_uuid); - if (verbose && dive->dive_site_uuid && get_dive_site_by_uuid(dive->dive_site_uuid)) + if (verbose && dive->dive_site_uuid && !get_dive_site_by_uuid(dive->dive_site_uuid)) fprintf(stderr, "removed reference to non-existant dive site with uuid %08x\n", dive->dive_site_uuid); save_overview(b, dive); save_cylinder_info(b, dive); -- cgit v1.2.3-70-g09d2