core/lwip/undiif: redo UNDIIF_ID_DEBUG features

Encapsulate in #ifdef; use snprintf and 1 dprintf-like statement.
allow for other debug usage