Fix:core: Fix the format specifier for g_strdup_printf, compiler warning with gcc...
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 20 Jan 2012 21:31:29 +0000 (21:31 +0000)
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 20 Jan 2012 21:31:29 +0000 (21:31 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4897 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/attr.c

index 9b5287e..c4ed00d 100644 (file)
@@ -325,7 +325,7 @@ attr_to_text(struct attr *attr, struct map *map, int pretty)
                return ret;
        }
        if (type >= attr_type_item_type_begin && type <= attr_type_item_type_end) {
-               return g_strdup_printf("0x%x[%s]",attr->u.num,item_to_name(attr->u.num));
+               return g_strdup_printf("0x%ld[%s]",attr->u.num,item_to_name(attr->u.num));
        }
        return g_strdup_printf("(no text[%s])", attr_to_name(type));    
 }