Avoid using the ISO C99 `z' formatted output modifier
authorMaciej W. Rozycki <macro@codesourcery.com>
Thu, 20 Mar 2014 21:41:56 +0000 (21:41 +0000)
committerMaciej W. Rozycki <macro@codesourcery.com>
Thu, 20 Mar 2014 21:41:56 +0000 (21:41 +0000)
* mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
`z' formatted output modifier.

gdb/ChangeLog
gdb/mi/mi-interp.c

index 1f4e8e76bed37123c6fef47b473930ccb795beac..f2e4a815024686da3e9b51c658b190d93c4d8565 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
+       `z' formatted output modifier.
+
 2014-03-20  Tom Tromey  <tromey@redhat.com>
            Sergio Durigan Junior  <sergiodj@redhat.com>
 
index 862beafbaf4d27a1f8726c4922e5d2dac48e9519..e8de1ea8362aab66f3f19b568d810b2299d90a50 100644 (file)
@@ -853,7 +853,7 @@ mi_memory_changed (struct inferior *inferior, CORE_ADDR memaddr,
 
   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.  */
This page took 0.034992 seconds and 4 git commands to generate.