diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-10-19 11:17:54 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-10-19 11:17:54 +0000 |
commit | d8710b53229e05873b6a3ac38688b591aba31542 (patch) | |
tree | 3c845a9bbbf9a7b9ead67c946f2b35c0e3c40844 /sys/netinet/sctputil.c | |
parent | c2db9fa30b800aabd3c8367ddf2977cbdfbec8d0 (diff) | |
download | FreeBSD-src-d8710b53229e05873b6a3ac38688b591aba31542.zip FreeBSD-src-d8710b53229e05873b6a3ac38688b591aba31542.tar.gz |
Use __func__ instead of __FUNCTION__.
This allows to compile the userland stack without errors using gcc5.
Thanks to saghul for makeing me aware and providing the patch.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 8a4a65e..e451cb1 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -2183,13 +2183,13 @@ sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, break; default: SCTPDBG(SCTP_DEBUG_TIMER1, "%s: Unknown timer type %d\n", - __FUNCTION__, t_type); + __func__, t_type); return; break; } if ((to_ticks <= 0) || (tmr == NULL)) { SCTPDBG(SCTP_DEBUG_TIMER1, "%s: %d:software error to_ticks:%d tmr:%p not set ??\n", - __FUNCTION__, t_type, to_ticks, (void *)tmr); + __func__, t_type, to_ticks, (void *)tmr); return; } if (SCTP_OS_TIMER_PENDING(&tmr->timer)) { @@ -2345,7 +2345,7 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, break; default: SCTPDBG(SCTP_DEBUG_TIMER1, "%s: Unknown timer type %d\n", - __FUNCTION__, t_type); + __func__, t_type); break; } if (tmr == NULL) { @@ -3777,7 +3777,7 @@ sctp_ulp_notify(uint32_t notification, struct sctp_tcb *stcb, break; default: SCTPDBG(SCTP_DEBUG_UTIL1, "%s: unknown notification %xh (%u)\n", - __FUNCTION__, notification, notification); + __func__, notification, notification); break; } /* end switch */ } |