* dwarf2read.c (open_and_init_dwp_file): Use pulongest to print uint32_t.
authorDoug Evans <dje@google.com>
Wed, 15 Jan 2014 21:14:06 +0000 (13:14 -0800)
committerDoug Evans <dje@google.com>
Wed, 15 Jan 2014 21:14:06 +0000 (13:14 -0800)
gdb/ChangeLog
gdb/dwarf2read.c

index 82f6fc6ffc17f753aebb286b5b7b54debce8976e..0305e985c452b2e7c13a45563194d09788490dff 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-15  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
+       uint32_t.
+
 2014-01-15  Tom Tromey  <tromey@redhat.com>
 
        * dbxread.c (process_one_symbol): Use set_objfile_main_name.
index 90c60cdb0d08c2e1ea6f377b5ff14ce0d80aff8e..71bbe96e5c2551481b3b2185ecfe41689031053b 100644 (file)
@@ -10544,10 +10544,12 @@ open_and_init_dwp_file (void)
   if (dwp_file->cus->version != dwp_file->tus->version)
     {
       /* Technically speaking, we should try to limp along, but this is
-        pretty bizarre.  */
-      error (_("Dwarf Error: DWP file CU version %d doesn't match"
-              " TU version %d [in DWP file %s]"),
-            dwp_file->cus->version, dwp_file->tus->version, dwp_name);
+        pretty bizarre.  We use pulongest here because that's the established
+        portability solution (e.g, we can use %u for uint32_t).  */
+      error (_("Dwarf Error: DWP file CU version %s doesn't match"
+              " TU version %s [in DWP file %s]"),
+            pulongest (dwp_file->cus->version),
+            pulongest (dwp_file->tus->version), dwp_name);
     }
   dwp_file->version = dwp_file->cus->version;