MG: log unhandled attributes with a debug message
authorGilles Filippini <pini@debian.org>
Mon, 11 Jan 2010 14:36:27 +0000 (15:36 +0100)
committerGilles Filippini <pini@debian.org>
Mon, 11 Jan 2010 14:36:27 +0000 (15:36 +0100)
debian/patches/mg-unhandled-attr

index 0af1dcb..54d4094 100644 (file)
@@ -1,17 +1,15 @@
-Workaround for unhandled attrs introduced by svn2827 and svn2844.
+Workaround for unhandled attrs in MG
 Index: navit/navit/map/mg/town.c
 ===================================================================
---- navit.orig/navit/map/mg/town.c     2010-01-11 11:45:19.000000000 +0100
-+++ navit/navit/map/mg/town.c  2010-01-11 12:28:35.000000000 +0100
-@@ -104,6 +104,11 @@
-               attr->u.str=twn->debug;
+--- navit.orig/navit/map/mg/town.c     2010-01-11 12:28:41.000000000 +0100
++++ navit/navit/map/mg/town.c  2010-01-11 15:31:54.000000000 +0100
+@@ -105,7 +105,8 @@
                twn->attr_next=attr_none;
                return 1;
-+      case attr_postal_mask:
-+      case attr_county_name:
-+      case attr_description:
-+      case attr_url_local:
-+              return 0;
        default:
-               dbg_assert(1==0);
+-              dbg_assert(1==0);
++                dbg(1, "Don't know about attribute %d[%04X]=%s yet\n",
++                      attr_type, attr_type, attr_to_name(attr_type));
                return 0;
+       }
+       return 1;