From 05ad00eeb2014e5b880e243e5e58ea477dde43aa Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Tue, 26 May 2015 15:38:51 +0200
Subject: [PATCH] rtld-audit.7: fix correct format for cookies
---
man-pages/man7/rtld-audit.7 | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/man-pages/man7/rtld-audit.7 b/man-pages/man7/rtld-audit.7
index bf28a03..52e2c6d 100644
--- a/man-pages/man7/rtld-audit.7
+++ b/man-pages/man7/rtld-audit.7
@@ -515,7 +515,7 @@ la_version(unsigned int version)
char *
la_objsearch(const char *name, uintptr_t *cookie, unsigned int flag)
{
- printf("la_objsearch(): name = %s; cookie = %x", name, cookie);
+ printf("la_objsearch(): name = %s; cookie = %p", name, cookie);
printf("; flag = %s\\n",
(flag == LA_SER_ORIG) ? "LA_SER_ORIG" :
(flag == LA_SER_LIBPATH) ? "LA_SER_LIBPATH" :
@@ -531,7 +531,7 @@ la_objsearch(const char *name, uintptr_t *cookie, unsigned int flag)
void
la_activity (uintptr_t *cookie, unsigned int flag)
{
- printf("la_activity(): cookie = %x; flag = %s\\n", cookie,
+ printf("la_activity(): cookie = %p; flag = %s\\n", cookie,
(flag == LA_ACT_CONSISTENT) ? "LA_ACT_CONSISTENT" :
(flag == LA_ACT_ADD) ? "LA_ACT_ADD" :
(flag == LA_ACT_DELETE) ? "LA_ACT_DELETE" :
@@ -541,7 +541,7 @@ la_activity (uintptr_t *cookie, unsigned int flag)
unsigned int
la_objopen(struct link_map *map, Lmid_t lmid, uintptr_t *cookie)
{
- printf("la_objopen(): loading \\"%s\\"; lmid = %s; cookie=%x\\n",
+ printf("la_objopen(): loading \\"%s\\"; lmid = %s; cookie=%p\\n",
map\->l_name,
(lmid == LM_ID_BASE) ? "LM_ID_BASE" :
(lmid == LM_ID_NEWLM) ? "LM_ID_NEWLM" :
@@ -554,7 +554,7 @@ la_objopen(struct link_map *map, Lmid_t lmid, uintptr_t *cookie)
unsigned int
la_objclose (uintptr_t *cookie)
{
- printf("la_objclose(): %x\\n", cookie);
+ printf("la_objclose(): %p\\n", cookie);
return 0;
}
@@ -562,7 +562,7 @@ la_objclose (uintptr_t *cookie)
void
la_preinit(uintptr_t *cookie)
{
- printf("la_preinit(): %x\\n", cookie);
+ printf("la_preinit(): %p\\n", cookie);
}
uintptr_t
@@ -572,7 +572,7 @@ la_symbind32(Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
printf("la_symbind32(): symname = %s; sym\->st_value = %p\\n",
symname, sym\->st_value);
printf(" ndx = %d; flags = 0x%x", ndx, *flags);
- printf("; refcook = %x; defcook = %x\\n", refcook, defcook);
+ printf("; refcook = %p; defcook = %p\\n", refcook, defcook);
return sym\->st_value;
}
@@ -584,7 +584,7 @@ la_symbind64(Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
printf("la_symbind64(): symname = %s; sym\->st_value = %p\\n",
symname, sym\->st_value);
printf(" ndx = %d; flags = 0x%x", ndx, *flags);
- printf("; refcook = %x; defcook = %x\\n", refcook, defcook);
+ printf("; refcook = %p; defcook = %p\\n", refcook, defcook);
return sym\->st_value;
}
--
1.9.3