[PATCH] dswave: Use the debug functions provided by dmobject.[ch]