diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-01-20 21:31:29 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-01-20 21:31:29 +0000 |
commit | e598df1bcea4690cb238efa60cede6414b5c760a (patch) | |
tree | eaecd28859991efce21f066a980a90eab9476df8 /navit/attr.c | |
parent | ca751324c68a3ef143f63e98bd012cb91a898416 (diff) | |
download | navit-e598df1bcea4690cb238efa60cede6414b5c760a.tar.gz |
Fix:core: Fix the format specifier for g_strdup_printf, compiler warning with gcc and clang
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4897 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/attr.c b/navit/attr.c index 9b5287eac..c4ed00db3 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -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)); } |