Add some yaffs debug functions for inspecting run-time state.