[spu] Fix "info spu event" output formatting

The formatting of the output of the "info spu event" command changed, causing
spurious test suite failures.  Use phex instead of phex_nz to get back the
expected format, and fix emission of new line characters.

gdb/ChangeLog:
2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>

	* spu-tdep.c (info_spu_event_command): Fix output formatting.
This commit is contained in:
Ulrich Weigand 2018-05-08 14:13:12 +02:00
parent 95a6d23566
commit 968ae51bac
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
* spu-tdep.c (info_spu_event_command): Fix output formatting.
2018-05-07 Tom Tromey <tom@tromey.com>
* configure: Rebuild.

View File

@ -2097,9 +2097,11 @@ info_spu_event_command (const char *args, int from_tty)
ui_out_emit_tuple tuple_emitter (current_uiout, "SPUInfoEvent");
current_uiout->text (_("Event Status "));
current_uiout->field_fmt ("event_status", "0x%s", phex_nz (event_status, 4));
current_uiout->text (_("\nEvent Mask "));
current_uiout->field_fmt ("event_mask", "0x%s", phex_nz (event_mask, 4));
current_uiout->field_fmt ("event_status", "0x%s", phex (event_status, 4));
current_uiout->text ("\n");
current_uiout->text (_("Event Mask "));
current_uiout->field_fmt ("event_mask", "0x%s", phex (event_mask, 4));
current_uiout->text ("\n");
}
static void