From: martin-s Date: Thu, 20 Mar 2008 21:27:21 +0000 (+0000) Subject: Add:Core:Added more information for debugging route coordinate overflow X-Git-Tag: navit-0.5.0.5194svn~4200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b54e203429cb335ce29bef976e3956e51b0f4ed4;p=profile%2Fivi%2Fnavit.git Add:Core:Added more information for debugging route coordinate overflow git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@952 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/src/route.c b/navit/src/route.c index 6418acb..85e8a5a 100644 --- a/navit/src/route.c +++ b/navit/src/route.c @@ -1014,6 +1014,11 @@ street_get_data (struct item *item) break; count++; } + if (count >= maxcount) { + dbg(0, "count=%d maxcount=%d id_hi=0x%x id_lo=0x%x\n", count, maxcount, item->id_hi, item->id_lo); + if (item_attr_get(item, attr_debug, &attr)) + dbg(0,"debug='%s'\n", attr.u.str); + } g_assert(count < maxcount); ret=g_malloc(sizeof(struct street_data)+count*sizeof(struct coord)); ret->item=*item;