The debug output was not updated with the rest of the code, so packets.c fails to compile if LOCAL_DEBUG is set.