From 66c445e34dde2b23cdd61828dde135089369e1ba Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 29 Apr 2006 14:11:39 +0000 Subject: [PATCH] Tame some log lines --- box.cc | 2 +- messagequeue.cc | 4 ++-- viewman.cc | 21 ++++++++++----------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/box.cc b/box.cc index f4e590a..a047615 100644 --- a/box.cc +++ b/box.cc @@ -69,7 +69,7 @@ void Box::setGap(UINT tgap) void Box::blt(Region& r) { - Log::getInstance()->log("Box", Log::DEBUG, "Show region %p %u %u %u %u", surface, r.x, r.y, r.w, r.h); +// Log::getInstance()->log("Box", Log::DEBUG, "Show region %p %u %u %u %u", surface, r.x, r.y, r.w, r.h); // surface->updateToScreen(area.x, area.y, area.w, area.h); /* surface update to screen needs: diff --git a/messagequeue.cc b/messagequeue.cc index 78d0b48..e5b0ab8 100644 --- a/messagequeue.cc +++ b/messagequeue.cc @@ -23,7 +23,7 @@ void MessageQueue::postMessage(Message* m) { messages.push(m); - Log::getInstance()->log("MessageQueue", Log::DEBUG, "have stored message %lu in queue", m->message); +// Log::getInstance()->log("MessageQueue", Log::DEBUG, "have stored message %lu in queue", m->message); } void MessageQueue::processMessageQueue() @@ -33,7 +33,7 @@ void MessageQueue::processMessageQueue() { m = messages.front(); messages.pop(); - Log::getInstance()->log("MessageQueue", Log::DEBUG, "retrieved message from queue"); +// Log::getInstance()->log("MessageQueue", Log::DEBUG, "retrieved message from queue"); processMessage(m); delete m; } diff --git a/viewman.cc b/viewman.cc index 99e88c6..cd6cc37 100644 --- a/viewman.cc +++ b/viewman.cc @@ -75,7 +75,7 @@ int ViewMan::removeView(View* toDelete) if (!initted) return 0; if (numViews == 0) return 0; - Log::getInstance()->log("ViewMan", Log::DEBUG, "entering remove, numViews=%i", numViews); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "entering remove, numViews=%i", numViews); int i; @@ -89,7 +89,7 @@ int ViewMan::removeView(View* toDelete) // to be deleted view is more likely to be at the top for (i = numViews-1; i >= 0; i--) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "todel: %p, i=%i, views[i]=%p", toDelete, i, views[i]); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "todel: %p, i=%i, views[i]=%p", toDelete, i, views[i]); if (views[i] == toDelete) break; } @@ -100,9 +100,9 @@ int ViewMan::removeView(View* toDelete) } } - Log::getInstance()->log("ViewMan", Log::DEBUG, "Starting deleteView"); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "Starting deleteView"); deleteView(i); - Log::getInstance()->log("ViewMan", Log::DEBUG, "Done deleteView"); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "Done deleteView"); // Shift the views on top down one --numViews; @@ -120,7 +120,7 @@ int ViewMan::removeView(View* toDelete) void ViewMan::deleteView(int z) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "Delete view %i of %i", z, numViews); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "Delete view %i of %i", z, numViews); RegionList rl; boxSplit(views[z]->area, z + 1, numViews, 1, rl); while(!rl.empty()) @@ -132,7 +132,7 @@ void ViewMan::deleteView(int z) void ViewMan::updateView(View* toUpdate, Region* regionToUpdate) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "UpdateView called"); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "UpdateView called"); // Get the z index of the view int z; @@ -362,7 +362,7 @@ int ViewMan::handleCommand(UCHAR command) for (i=numViews-1; i>=0; i--) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "Giving command to i=%i", i); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "Giving command to i=%i", i); retVal = views[i]->handleCommand(command); if (retVal == 1) { @@ -378,7 +378,7 @@ int ViewMan::handleCommand(UCHAR command) } else if (retVal == 4) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "Return 4: i=%i, views[i]=%p", i, views[i]); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "Return 4: i=%i, views[i]=%p", i, views[i]); removeView(views[i]); retVal2 = 1; break; @@ -391,7 +391,7 @@ int ViewMan::handleCommand(UCHAR command) retVal2 = 2; } - Log::getInstance()->log("ViewMan", Log::DEBUG, "out of handlecommand code, now on to messages"); +// Log::getInstance()->log("ViewMan", Log::DEBUG, "out of handlecommand code, now on to messages"); processMessageQueue(); @@ -406,8 +406,7 @@ void ViewMan::processMessage(Message* m) { if (views[i] == m->to) { - Log::getInstance()->log("ViewMan", Log::DEBUG, "sending message to view"); - Log::getInstance()->log("ViewMan", Log::DEBUG, "%p %p %lu", m->from, m->to, m->message); + Log::getInstance()->log("ViewMan", Log::DEBUG, "sending message to view %p %p %lu", m->from, m->to, m->message); views[i]->processMessage(m); return; } -- 2.39.5