Remove unportable printing of C function pointers

This commit is contained in:
kieranm 2010-06-28 13:32:13 +00:00
parent e2f014f457
commit 272270c7f4
2 changed files with 3 additions and 16 deletions

View File

@ -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

View File

@ -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);