mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
Remove unportable printing of C function pointers
This commit is contained in:
parent
e2f014f457
commit
272270c7f4
@ -224,6 +224,8 @@ HISTORY
|
||||
|
||||
|
||||
++ Bugfixes:
|
||||
2010-06-28: Kieran Mansley
|
||||
* timers.c remove unportable printing of C function pointers
|
||||
|
||||
2010-06-24: Simon Goldschmidt
|
||||
* init.c, timers.c/.h, opt.h, memp_std.h: From patch #7221: added flag
|
||||
|
@ -279,14 +279,6 @@ sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
|
||||
timeout->handler_name = handler_name;
|
||||
#endif /* LWIP_DEBUG_TIMERNAMES */
|
||||
|
||||
#if LWIP_DEBUG_TIMERNAMES
|
||||
LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p msecs=%"U32_F" h=%p arg=%p name=%s\n",
|
||||
(void *)timeout, msecs, *(void**)&h, (void *)arg, handler_name));
|
||||
#else /* LWIP_DEBUG_TIMERNAMES */
|
||||
LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p msecs=%"U32_F" h=%p arg=%p\n",
|
||||
(void *)timeout, msecs, *(void**)&h, (void *)arg));
|
||||
#endif /* LWIP_DEBUG_TIMERNAMES */
|
||||
|
||||
if (next_timeout == NULL) {
|
||||
next_timeout = timeout;
|
||||
return;
|
||||
@ -391,14 +383,7 @@ sys_check_timeouts(void)
|
||||
handler_name = tmptimeout->handler_name;
|
||||
#endif /* LWIP_DEBUG_TIMERNAMES */
|
||||
memp_free(MEMP_SYS_TIMEOUT, tmptimeout);
|
||||
if (h != NULL) {
|
||||
#if LWIP_DEBUG_TIMERNAMES
|
||||
LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%p(%p) (%s)\n", *(void**)&h, arg, handler_name));
|
||||
#else /* LWIP_DEBUG_TIMERNAMES */
|
||||
LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%p(%p)\n", *(void**)&h, arg));
|
||||
#endif /* LWIP_DEBUG_TIMERNAMES */
|
||||
h(arg);
|
||||
}
|
||||
if (h != NULL) h(arg);
|
||||
}
|
||||
/* repeat until all expired timers have been called */
|
||||
}while(had_one);
|
||||
|
Loading…
Reference in New Issue
Block a user