diff options
author | Doug Evans <dje@google.com> | 2014-01-15 13:14:06 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-01-15 13:14:06 -0800 |
commit | fbcbc3fda41263ce865b6dbe9f5382e027fcd8c5 (patch) | |
tree | d1c751184ddfcbc3aab99962d94cc6f8c19b5839 /gdb/dwarf2read.c | |
parent | 3d548a532dd74f9bf5f2033541f0b504d96baf04 (diff) | |
download | gdb-fbcbc3fda41263ce865b6dbe9f5382e027fcd8c5.zip gdb-fbcbc3fda41263ce865b6dbe9f5382e027fcd8c5.tar.gz gdb-fbcbc3fda41263ce865b6dbe9f5382e027fcd8c5.tar.bz2 |
* dwarf2read.c (open_and_init_dwp_file): Use pulongest to print uint32_t.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 90c60cd..71bbe96 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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; |