summaryrefslogtreecommitdiffstats
path: root/load-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-02 11:22:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-02 11:22:22 -0700
commit08a451d24ab00fec9b318842c4cdf82ff5c090c6 (patch)
treeb972b533bcd1d0b044f194590a933bd944007f1f /load-git.c
parent898d82e64768b4e8ac3f6b074d6d5157aa69a1e0 (diff)
downloadsubsurface-08a451d24ab00fec9b318842c4cdf82ff5c090c6.tar.gz
More debug message cleanup
Remove several very noise messages on dive site handling (this seems to work well now, so I think we can remove most of them - a couple were left that indicate actual issues). And also remove all the calls to "translate" when outputting data to stderr. Error messages that indicate issues where the user will basically have to come and ask the developers for help shouldn't be localized. They should be in English to make it easier for us to figure out what's going on. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'load-git.c')
-rw-r--r--load-git.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/load-git.c b/load-git.c
index 20c1ad351..d277ccea3 100644
--- a/load-git.c
+++ b/load-git.c
@@ -201,16 +201,13 @@ static void parse_dive_location(char *line, struct membuffer *str, void *_dive)
char *name = get_utf8(str);
struct dive *dive = _dive;
struct dive_site *ds = get_dive_site_for_dive(dive);
- fprintf(stderr, "looking for a site named {%s} ", name);
if (!ds) {
uuid = get_dive_site_uuid_by_name(name, NULL);
- if (!uuid) { fprintf(stderr, "found none, creating\n");
+ if (!uuid)
uuid = create_dive_site(name);
- } else { fprintf(stderr, "found one with uuid %8x\n", uuid); }
dive->dive_site_uuid = uuid;
} else {
// we already had a dive site linked to the dive
- fprintf(stderr, "dive had site with uuid %8x and name {%s}\n", ds->uuid, ds->name);
if (same_string(ds->name, "")) {
ds->name = name;
} else {
@@ -302,7 +299,6 @@ static void parse_site_gps(char *line, struct membuffer *str, void *_ds)
static void parse_site_geo(char *line, struct membuffer *str, void *_ds)
{
- fprintf(stderr, "line |%s| str |%s|\n", line, mb_cstring(str));
struct dive_site *ds = _ds;
if (ds->taxonomy.category == NULL)
ds->taxonomy.category = alloc_taxonomy();
@@ -311,7 +307,6 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds)
struct taxonomy *t = &ds->taxonomy.category[nr];
t->value = strdup(mb_cstring(str));
sscanf(line, "cat %d origin %d \"", &t->category, &t->origin);
- fprintf(stderr, "found category %d origin %d value |%s|\n", t->category, t->origin, t->value);
ds->taxonomy.nr++;
}
}