Add:Core:Added more information for debugging route coordinate overflow
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 20 Mar 2008 21:27:21 +0000 (21:27 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 20 Mar 2008 21:27:21 +0000 (21:27 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@952 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/route.c

index 6418acb..85e8a5a 100644 (file)
@@ -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;