[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[committed] Fix error message in calculate_section_distance



Hi,

Two error messages in calculate_section_distance contain '0x%lld', which
should be (given the 0x prefix) '0x%llx'.  Fix this.

Committed to trunk.

Thanks,
- Tom

Fix error message in calculate_section_distance

2019-07-10  Tom de Vries  <tdevries@suse.de>

	* dwz.c (calculate_section_distance): Replace '0x%lld' with '0x%llx'
	in error message.

---
 dwz.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dwz.c b/dwz.c
index 4457f8c..cd382b9 100644
--- a/dwz.c
+++ b/dwz.c
@@ -10525,11 +10525,11 @@ calculate_section_distance (DSO *dso, unsigned int *sorted_section_numbers,
 	{
 	  error (0, 0, "Section overlap detected");
 	  if (prev == dso->ehdr.e_shnum)
-	    error (0, 0, "Section header table: [0x%llx, 0x%lld)",
+	    error (0, 0, "Section header table: [0x%llx, 0x%llx)",
 		   (unsigned long long)prev_offset,
 		   (unsigned long long)(prev_offset + prev_size));
 	  else
-	    error (0, 0, "Section %d: [0x%llx, 0x%lld)", j,
+	    error (0, 0, "Section %d: [0x%llx, 0x%llx)", j,
 		   (unsigned long long)prev_offset,
 		   (unsigned long long)(prev_offset + prev_size));
 	  if (j == dso->ehdr.e_shnum)