summaryrefslogtreecommitdiffstats
path: root/gdb/record.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-10-23 14:35:30 +0000
committerHui Zhu <teawater@gmail.com>2009-10-23 14:35:30 +0000
commit1de1372dc937099c5fdf00d9b85f08300c1bca3d (patch)
tree3c0976573a04d2710bf00b10c181b4a326d65e11 /gdb/record.c
parent7e2183ccaf10c63e53ce59060a025cdcf662be6e (diff)
downloadppe42-binutils-1de1372dc937099c5fdf00d9b85f08300c1bca3d.tar.gz
ppe42-binutils-1de1372dc937099c5fdf00d9b85f08300c1bca3d.zip
2009-10-23 Hui Zhu <teawater@gmail.com>
* record.c (record_restore): Use phex_nz.
Diffstat (limited to 'gdb/record.c')
-rw-r--r--gdb/record.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/record.c b/gdb/record.c
index 1cb2dab7f1..1f62221c05 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -2017,8 +2017,8 @@ record_restore (void)
bfd_get_filename (core_bfd));
if (record_debug)
printf_filtered ("\
- Reading 4-byte magic cookie RECORD_FILE_MAGIC (0x%08x)\n",
- netorder32 (magic));
+ Reading 4-byte magic cookie RECORD_FILE_MAGIC (0x%s)\n",
+ phex_nz (netorder32 (magic), 4));
/* Restore the entries in recfd into record_arch_list_head and
record_arch_list_tail. */
@@ -2284,8 +2284,8 @@ cmd_record_save (char *args, int from_tty)
magic = RECORD_FILE_MAGIC;
if (record_debug)
printf_filtered ("\
- Writing 4-byte magic cookie RECORD_FILE_MAGIC (0x%08x)\n",
- magic);
+ Writing 4-byte magic cookie RECORD_FILE_MAGIC (0x%s)\n",
+ phex_nz (magic, 4));
bfdcore_write (obfd, osec, &magic, sizeof (magic), &bfd_offset);
/* Save the entries to recfd and forward execute to the end of
OpenPOWER on IntegriCloud