aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-05-10 07:52:17 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-05-10 07:52:17 +0000
commit25fac4a635c3a5aab89c906abb1ce872d59b6a04 (patch)
treecc130270be35f30afa243829b8c6b850b951caab /cddl/contrib/opensolaris/lib/libdtrace
parenta05f81bfa3def4ef0a7e8fed227a430f80d1f8b8 (diff)
downloadsrc-25fac4a635c3a5aab89c906abb1ce872d59b6a04.tar.gz
src-25fac4a635c3a5aab89c906abb1ce872d59b6a04.zip
Rename dprintf into dbg_printf to avoid collision with dprintf(3)
When dprintf(3) in 2009 was added a _WITH_DPRINTF guard has also been added. This rename is made in preparation for the removal of this guard
Notes
Notes: svn path=/head/; revision=299343
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/drti.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
index 5fab935ee94e..cd9294998454 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
@@ -65,7 +65,7 @@ extern dof_hdr_t __SUNW_dof; /* DOF defined in the .SUNW_dof section */
static boolean_t dof_init_debug = B_FALSE; /* From DTRACE_DOF_INIT_DEBUG */
static void
-dprintf(int debug, const char *fmt, ...)
+dbg_printf(int debug, const char *fmt, ...)
{
va_list ap;
@@ -119,13 +119,13 @@ dtrace_dof_init(void)
dof_init_debug = B_TRUE;
if (dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &lmp) == -1 || lmp == NULL) {
- dprintf(1, "couldn't discover module name or address\n");
+ dbg_printf(1, "couldn't discover module name or address\n");
return;
}
#ifdef illumos
if (dlinfo(RTLD_SELF, RTLD_DI_LMID, &lmid) == -1) {
- dprintf(1, "couldn't discover link map ID\n");
+ dbg_printf(1, "couldn't discover link map ID\n");
return;
}
#endif
@@ -139,7 +139,7 @@ dtrace_dof_init(void)
dof->dofh_ident[DOF_ID_MAG1] != DOF_MAG_MAG1 ||
dof->dofh_ident[DOF_ID_MAG2] != DOF_MAG_MAG2 ||
dof->dofh_ident[DOF_ID_MAG3] != DOF_MAG_MAG3) {
- dprintf(0, ".SUNW_dof section corrupt\n");
+ dbg_printf(0, ".SUNW_dof section corrupt\n");
return;
}
@@ -163,7 +163,7 @@ dtrace_dof_init(void)
devnamep = p;
if ((fd = open64(devnamep, O_RDWR)) < 0) {
- dprintf(1, "failed to open helper device %s", devnamep);
+ dbg_printf(1, "failed to open helper device %s", devnamep);
#ifdef illumos
/*
* If the device path wasn't explicitly set, try again with
@@ -175,7 +175,7 @@ dtrace_dof_init(void)
devnamep = olddevname;
if ((fd = open64(devnamep, O_RDWR)) < 0) {
- dprintf(1, "failed to open helper device %s", devnamep);
+ dbg_printf(1, "failed to open helper device %s", devnamep);
return;
}
#else
@@ -183,9 +183,9 @@ dtrace_dof_init(void)
#endif
}
if ((gen = ioctl(fd, DTRACEHIOC_ADDDOF, &dh)) == -1)
- dprintf(1, "DTrace ioctl failed for DOF at %p", dof);
+ dbg_printf(1, "DTrace ioctl failed for DOF at %p", dof);
else {
- dprintf(1, "DTrace ioctl succeeded for DOF at %p\n", dof);
+ dbg_printf(1, "DTrace ioctl succeeded for DOF at %p\n", dof);
#ifdef __FreeBSD__
gen = dh.dofhp_gen;
#endif
@@ -206,14 +206,14 @@ dtrace_dof_fini(void)
int fd;
if ((fd = open64(devnamep, O_RDWR)) < 0) {
- dprintf(1, "failed to open helper device %s", devnamep);
+ dbg_printf(1, "failed to open helper device %s", devnamep);
return;
}
if ((gen = ioctl(fd, DTRACEHIOC_REMOVE, &gen)) == -1)
- dprintf(1, "DTrace ioctl failed to remove DOF (%d)\n", gen);
+ dbg_printf(1, "DTrace ioctl failed to remove DOF (%d)\n", gen);
else
- dprintf(1, "DTrace ioctl removed DOF (%d)\n", gen);
+ dbg_printf(1, "DTrace ioctl removed DOF (%d)\n", gen);
(void) close(fd);
}