aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-10-06 18:29:00 +0000
committerMark Johnston <markj@FreeBSD.org>2017-10-06 18:29:00 +0000
commit11a7f121b8f0b80e274c8c8d777e3e910f762cc1 (patch)
tree114373b8b815023b808e9591263a72ce889e4ebd /cddl/contrib/opensolaris/lib/libdtrace
parent58900beed3bee86c2ecb567d63481187a14b3499 (diff)
downloadsrc-11a7f121b8f0b80e274c8c8d777e3e910f762cc1.tar.gz
src-11a7f121b8f0b80e274c8c8d777e3e910f762cc1.zip
Avoid adding an extra "0x" prefix before pointer formats.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=324373
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c2
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c
index 0c41bda0aac9..d1335180ec97 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c
@@ -434,7 +434,7 @@ dt_dis(const dtrace_difo_t *dp, FILE *fp)
ulong_t i = 0;
char type[DT_TYPE_NAMELEN];
- (void) fprintf(fp, "\nDIFO 0x%p returns %s\n", (void *)dp,
+ (void) fprintf(fp, "\nDIFO %p returns %s\n", (void *)dp,
dt_dis_typestr(&dp->dtdo_rtype, type, sizeof (type)));
(void) fprintf(fp, "%-3s %-8s %s\n",
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c
index 4be0f03d4a43..0a3a10a76954 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c
@@ -377,7 +377,7 @@ dt_print_array(ctf_id_t base, ulong_t off, dt_printarg_t *pap)
ctf_id_t rtype;
if (ctf_array_info(ctfp, base, &car) == CTF_ERR) {
- (void) fprintf(fp, "0x%p", (void *)addr);
+ (void) fprintf(fp, "%p", (void *)addr);
return;
}