X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=779997a14ff45ce303b54777f610e16ecd8e0e09;hb=d79d0c83452212355d212e8fcd4ad5c27c1906fc;hp=0a216353052a46b90af65c1132be24b2fab1bd4f;hpb=ef1b8f5fa4c2e939e9b6f08069ee08d362ee0ee5;p=staging%2Fwindowmanager.git diff --git a/src/app.cpp b/src/app.cpp index 0a21635..779997a 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -41,7 +41,6 @@ App *g_app; using json = nlohmann::json; struct wm::area area_from_json(json const &j) { - DB(j); return wm::area{ j["name"], { @@ -53,7 +52,6 @@ struct wm::area area_from_json(json const &j) { } result layout_from_json(json const &j) { - DB(j); auto &ja = j["areas"]; auto l = layout{j["name"], uint32_t(ja.size()), {}}; @@ -83,7 +81,7 @@ result file_to_json(char const *filename) { // Will throw if parsing fails struct result load_layout(char const *filename) { - DB("loading layout from " << filename); + logdebug("loading layout from %s", filename); auto j = file_to_json(filename); if (j.is_err()) { @@ -101,7 +99,7 @@ struct result load_layout(char const *filename) { struct result load_layer_map(char const *filename) { - DB("loading IDs from " << filename); + logdebug("loading IDs from %s", filename); auto j = file_to_json(filename); if (j.is_err()) { @@ -368,7 +366,7 @@ void App::execute_pending() { // | .__/|_| \___/_/\_\_|\___|\__,_| |_____| \_/ \___|_| |_|\__|___/ // |_| void App::surface_created(uint32_t surface_id) { - DB("surface_id is " << surface_id); + logdebug("surface_id is %u", surface_id); // We need to execute the surface setup after its creation. this->add_task("surface_set_layout", @@ -376,7 +374,7 @@ void App::surface_created(uint32_t surface_id) { } void App::surface_removed(uint32_t surface_id) { - DB("surface_id is " << surface_id); + logdebug("surface_id is %u", surface_id); } // _ _ _ _ _ _ _