Skip to contentSkip to conversation

ldso/arc: fix debug prints

PATCH New Vineet Gupta 2 participants 2 messages Apr 5, 2017 – Apr 11, 2017 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ldso/arc: fix debug prints

Signed-off-by Vineet Gupta <vgupta at synopsys.com>
---
 ldso/ldso/arc/elfinterp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ldso/ldso/arc/elfinterp.c +3 -3
index 2f0cf7f6635b..c164d5dae6bf 100644
@@ -179,8 +179,8 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
 log_entry:
 #if defined __SUPPORT_LD_DEBUG__
 	if (_dl_debug_detail)
-		_dl_dprintf(_dl_debug_file,"\tpatched: %lx ==> %lx @ %pl: addend %x ",
-				old_val, *reloc_addr, reloc_addr, rpnt->r_addend);
+		_dl_dprintf(_dl_debug_file,"\tpatched: %x ==> %x @ %x",
+				old_val, *reloc_addr, reloc_addr);
 #endif
 
 	return 0;
@@ -215,7 +215,7 @@ _dl_do_lazy_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
 
 #if defined __SUPPORT_LD_DEBUG__
 	if (_dl_debug_reloc && _dl_debug_detail)
-		_dl_dprintf(_dl_debug_file, "\tpatched: %lx ==> %lx @ %pl\n",
+		_dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n",
 				old_val, *reloc_addr, reloc_addr);
 #endif
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 ldso/arc: fix debug prints

Hi Vineet,
Vineet Gupta wrote,

Quoted 21 lines
Signed-off-by Vineet Gupta <vgupta at synopsys.com>
---
 ldso/ldso/arc/elfinterp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ldso/ldso/arc/elfinterp.c +2 -2
index 2f0cf7f6635b..c164d5dae6bf 100644
@@ -179,8 +179,8 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
 log_entry:
 #if defined __SUPPORT_LD_DEBUG__
 	if (_dl_debug_detail)
-		_dl_dprintf(_dl_debug_file,"\tpatched: %lx ==> %lx @ %pl: addend %x ",
-				old_val, *reloc_addr, reloc_addr, rpnt->r_addend);
+		_dl_dprintf(_dl_debug_file,"\tpatched: %x ==> %x @ %x",
+				old_val, *reloc_addr, reloc_addr);
 #endif
 
 	return 0;

ldso/ldso/arc/elfinterp.c _dl_do_lazy_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope, · line 220

Quoted 7 lines
ldso/ldso/arc/elfinterp.c +1 -1
@@ -215,7 +215,7 @@ _dl_do_lazy_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
 
 #if defined __SUPPORT_LD_DEBUG__
 	if (_dl_debug_reloc && _dl_debug_detail)
-		_dl_dprintf(_dl_debug_file, "\tpatched: %lx ==> %lx @ %pl\n",
+		_dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n",
 				old_val, *reloc_addr, reloc_addr);
 #endif

Applied and pushed,
Waldemar