From 070c802839c00ca8f8ab3ef512abc2726a389146 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 25 Jun 2010 22:00:59 +0000 Subject: * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for hosts where CORE_ADDR is long long. --- gdb/solib-spu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/solib-spu.c') diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c index f8073dc..91b6a18 100644 --- a/gdb/solib-spu.c +++ b/gdb/solib-spu.c @@ -126,8 +126,9 @@ append_ocl_sos (struct so_list **link_ptr) new = XZALLOC (struct so_list); /* Encode FD and object ID in path name. */ - xsnprintf (new->so_name, sizeof new->so_name, "@0x%lx <%d>", - data, SPUADDR_SPU (*ocl_program_addr_base)); + xsnprintf (new->so_name, sizeof new->so_name, "@%s <%d>", + hex_string (data), + SPUADDR_SPU (*ocl_program_addr_base)); strcpy (new->so_original_name, new->so_name); *link_ptr = new; -- cgit v1.1