]> err.no Git - mapper/commitdiff
Path: Add some more debug output
authorKaj-Michael Lang <milang@tal.org>
Tue, 5 Aug 2008 14:18:36 +0000 (17:18 +0300)
committerKaj-Michael Lang <milang@tal.org>
Tue, 5 Aug 2008 14:18:36 +0000 (17:18 +0300)
libs/libgtkmap/path.c

index 7148d9e62ae9cead637a37d06a20cf1a452b060c..ad96d8274fa63c18ed438a6ef99af9f5188e7cae 100644 (file)
@@ -379,7 +379,8 @@ if (abs((gint)unitx-path->tail->unitx) > path->sensitivity || abs((gint)unity-pa
        path->tspeed+=speed;
        path->avgspeed=(path->points>0) ? path->tspeed/path->points : 0.0;
        path->points++;
-       g_debug("TRACK: %f %f (%d)", path->length, path->avgspeed, path->points);
+
+       g_debug("TRACK(%f, %f): LEN: %f AVG: %f (%d)", lat, lon, path->length, path->avgspeed, path->points);
 
        g_signal_emit(G_OBJECT(path), signals[NEW_POINT], 0, NULL);
        return TRUE;