[PATCH 7/9] dmloader: Use the debug functions provided by dmobject.[ch]