diff options
author | markj <markj@FreeBSD.org> | 2017-10-13 13:56:44 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2017-10-13 13:56:44 +0000 |
commit | 32dd1517a5c2f1863848312e4bbeb2e792d91b0d (patch) | |
tree | 84169e9bab7996e6f4ceed3e0c08fa9f7505b709 | |
parent | 8df84d14b0ba33679e2a0190a760b7e70e76e4e1 (diff) | |
download | FreeBSD-src-32dd1517a5c2f1863848312e4bbeb2e792d91b0d.zip FreeBSD-src-32dd1517a5c2f1863848312e4bbeb2e792d91b0d.tar.gz |
MFC r324373:
Avoid adding an extra "0x" prefix before pointer formats.
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c | 2 | ||||
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c | 2 |
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 0c41bda..d133518 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 4be0f03..0a3a10a 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; } |