From deba7593bb5b6e5159f5f0ea0afecd69125057a7 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 20 Mar 2014 21:41:56 +0000 Subject: [PATCH] Avoid using the ISO C99 `z' formatted output modifier * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99 `z' formatted output modifier. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-interp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f4e8e76bed..f2e4a815024 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-03-20 Maciej W. Rozycki + + * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99 + `z' formatted output modifier. + 2014-03-20 Tom Tromey Sergio Durigan Junior diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 862beafbaf4..e8de1ea8362 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -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. */ -- 2.30.2