summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wildemann <wildemann@CORPLIN1008.corpuls.local>2019-10-07 09:32:40 +0200
committerStefan Wildemann <wildemann@CORPLIN1008.corpuls.local>2019-10-07 09:32:40 +0200
commite88591bfe4b45da4af7686251dc057779b931b22 (patch)
tree5786266a4bed7dbf09a3e83dc129f82004008be9
parent56bf614188ef3f8201aebd7604b329b252790f65 (diff)
downloadnavit-e88591bfe4b45da4af7686251dc057779b931b22.tar.gz
fix:maptool:silence new read function
-rw-r--r--navit/maptool/itembin_buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/navit/maptool/itembin_buffer.c b/navit/maptool/itembin_buffer.c
index 21e837d97..5bdf09458 100644
--- a/navit/maptool/itembin_buffer.c
+++ b/navit/maptool/itembin_buffer.c
@@ -39,7 +39,8 @@ read_node_item(FILE *in) {
struct node_item * retval = NULL;
if((last_in != in) || (last_pos != ftell(in))) {
- fprintf(stderr, "change file. Still %d items\n", out_count - in_count);
+ if((out_count - in_count) > 0)
+ fprintf(stderr, "change file. Still %d items\n", out_count - in_count);
/* got new file. flush buffer. */
in_count=0;
out_count=0;
@@ -53,7 +54,7 @@ read_node_item(FILE *in) {
} else {
out_count=0;
in_count=fread(item_buffer, sizeof(struct node_item), ITEM_COUNT, in);
- fprintf(stderr, "read %d items\n", in_count);
+ //fprintf(stderr, "read %d items\n", in_count);
if(in_count < 1) {
/* buffer still empty after read */
return NULL;