registry: unify debug output in the registry init functions.