Message ID | alpine.DEB.1.10.1403191837150.23119@tp.orcam.me.uk |
---|---|
State | Committed |
Headers | show |
Hi Maciej, > 2014-03-19 Maciej W. Rozycki <macro@codesourcery.com> > > gdb/ > * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99 > `z' formatted output modifier. LGTM - go ahead and commit. Thank you,
On Thu, 20 Mar 2014, Joel Brobecker wrote: > > * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99 > > `z' formatted output modifier. > > LGTM - go ahead and commit. Thanks, applied. Maciej
Index: gdb-fsf-trunk-quilt/gdb/mi/mi-interp.c =================================================================== --- gdb-fsf-trunk-quilt.orig/gdb/mi/mi-interp.c 2014-01-14 22:02:56.000000000 +0000 +++ gdb-fsf-trunk-quilt/gdb/mi/mi-interp.c 2014-03-19 13:25:57.018399978 +0000 @@ -854,7 +854,7 @@ mi_memory_changed (struct inferior *infe ui_out_field_fmt (mi_uiout, "thread-group", "i%d", inferior->num); ui_out_field_core_addr (mi_uiout, "addr", target_gdbarch (), memaddr); - ui_out_field_fmt (mi_uiout, "len", "0x%zx", len); + ui_out_field_fmt (mi_uiout, "len", "%s", hex_string (len)); /* Append 'type=code' into notification if MEMADDR falls in the range of sections contain code. */