2009-10-23 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 23 Oct 2009 14:35:30 +0000 (14:35 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 23 Oct 2009 14:35:30 +0000 (14:35 +0000)
* record.c (record_restore): Use phex_nz.

gdb/ChangeLog
gdb/record.c

index 30579b98a5a6853e73443edf3bdec6b9c4e482a1..0911bb7b5f8ac0ad4e9a8a8d20cc7c1cde62f7ec 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-23  Hui Zhu  <teawater@gmail.com>
+
+       * record.c (record_restore): Use phex_nz.
+
 2009-10-23  Tristan Gingold  <gingold@adacore.com>
 
        * frame.c (frame_unwind_pc): Fix typo: remove duplicate 0x.
index 1cb2dab7f1b89bdb6825add2a6b79c42ad8d136e..1f62221c0577b0c299e9cfb642843f767de4e56a 100644 (file)
@@ -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