Commit bde37e46 authored by Michael Beck's avatar Michael Beck
Browse files

Do not tell about debug mask if no changes were done

[r7930]
parent 4f00bf73
......@@ -620,9 +620,11 @@ static void set_dbg_level(const char *name, unsigned lvl)
{
firm_dbg_module_t *module = dbg_register(name);
firm_dbg_set_mask(module, lvl);
if (firm_dbg_get_mask(module) != lvl) {
firm_dbg_set_mask(module, lvl);
dbg_printf("Setting debug mask of module %s to %u\n", name, lvl);
dbg_printf("Setting debug mask of module %s to %u\n", name, lvl);
}
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment