* GNU General Public License 2.
* Please see the COPYING-GPL-2 file for details.
*/
+
+#include "cfg.h"
+#include "debug.h"
#include "hw_root_bus.h"
#include "phys_space.h"
#include "resource.h"
-#include "cfg.h"
namespace {
return true;
}
-#if 1
- printf("WARNING: phys mmio resource allocation failed\n");
- child->dump();
-#endif
+ d_printf(DBG_WARN, "WARNING: phys mmio resource allocation failed\n");
+ if (dlevel(DBG_WARN))
+ child->dump();
+
return false;
}
cld->start(phys.start());
child->parent(parent);
- if (Io_config::cfg->verbose())
+ if (dlevel(DBG_DEBUG))
{
printf("allocated resource: ");
cld->dump();