freetdm: Declare __FTDM_FUNC__ macro and use it instead of __FUNCTION__ to deal with platform differences

OPENZAP-237 #resolve
This commit is contained in:
Moises Silva committed 2015-07-03 12:42:33 -04:00
1 parent 2f836a2c53
commit 01a9e443ea
17 files changed
+360 -366

No files matched your search

+1 -1
View File
@@ -234,7 +234,7 @@ static int on_restart(struct sangoma_pri *spri, sangoma_pri_event_t event_type,
static int on_anything(struct sangoma_pri *spri, sangoma_pri_event_t event_type, pri_event *event)
{
printf("%s: Caught Event %d (%s)\n", __FUNCTION__, event_type, sangoma_pri_event_str(event_type));
printf("%s: Caught Event %d (%s)\n", __FTDM_FUNC__, event_type, sangoma_pri_event_str(event_type));
return 0;
}