Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2008 05:36:21 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 137465 for review
Message-ID:  <200803120536.m2C5aLru006350@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137465

Change 137465 by jb@jb_freebsd8 on 2008/03/12 05:35:25

	Fix a bug in the pointer value printing. Oops.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_consume.c#16 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_consume.c#16 (text) ====

@@ -904,6 +904,7 @@
 		dt_type_cbdata_t cbdata;
 		ctf_arinfo_t arinfo;
 		ctf_encoding_t cte;
+		uintptr_t *up;
 		void *vp = addr;
 		cbdata = *cbdatap;
 		cbdata.name = "";
@@ -964,7 +965,7 @@
 			dt_printf(cbdatap->dtp, cbdatap->fp, "CTF_K_FLOAT: format %x offset %u bits %u\n",cte.cte_format,cte.cte_offset,cte.cte_bits);
 			break;
 		case CTF_K_POINTER:
-			dt_printf(cbdatap->dtp, cbdatap->fp, "%p;\n", *((char *) addr));
+			dt_printf(cbdatap->dtp, cbdatap->fp, "%p;\n", *((void **) addr));
 			break;
 		case CTF_K_ARRAY:
 			if (ctf_array_info(cbdatap->dtt.dtt_ctfp, type, &arinfo) != 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803120536.m2C5aLru006350>