[PATCH] Avoiding name conflict with the GNU-specific dprintf in stdio.h
Signed-off-by: Yang Zhang <yaaang@gmail.com>
diff --git a/src/dwarf/Gparser.c b/src/dwarf/Gparser.c
index aa87d61..01a3743 100644
--- a/src/dwarf/Gparser.c
+++ b/src/dwarf/Gparser.c
@@ -771,7 +771,7 @@
if (c->ip == prev_ip && c->cfa == prev_cfa)
{
- dprintf ("%s: ip and cfa unchanged; stopping here (ip=0x%lx)\n",
+ Dprintf ("%s: ip and cfa unchanged; stopping here (ip=0x%lx)\n",
__FUNCTION__, (long) c->ip);
return -UNW_EBADFRAME;
}
@@ -835,7 +835,7 @@
memcpy(rs, rs1, offsetof(struct dwarf_reg_state, ip));
if (!rs)
{
- dprintf ("%s: failed to create unwind rs\n", __FUNCTION__);
+ Dprintf ("%s: failed to create unwind rs\n", __FUNCTION__);
ret = -UNW_EUNSPEC;
goto out;
}