[tekui-devel] tekui: Now using symbolical debug-levels

Timm S. Mueller tmueller at neoscientists.org
Tue Apr 1 15:36:36 CEST 2008


details:   http://hg.teklib.org/tekui/rev/fea98720bf39
changeset: 403:fea98720bf39
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Tue Apr 01 10:53:57 2008 +0200
description:
Now using symbolical debug-levels

diffs (89 lines):

diff -r 2039cf5134fd -r fea98720bf39 tek/class/ui/region.c
--- a/tek/class/ui/region.c	Tue Apr 01 01:52:06 2008 +0200
+++ b/tek/class/ui/region.c	Tue Apr 01 10:53:57 2008 +0200
@@ -92,7 +92,7 @@ static struct RectNode *allocrectnode(TA
 	struct RectNode *rn = TExecAlloc(exec, TNULL, sizeof(struct RectNode));
 	if (rn)
 	{
-		TDBPRINTF(2, ("allocrect: %08x\n", rn));
+		TDBPRINTF(TDB_TRACE,("allocrect: %08x\n", rn));
 		rn->rn_Rect[0] = x0;
 		rn->rn_Rect[1] = y0;
 		rn->rn_Rect[2] = x1;
@@ -313,7 +313,7 @@ static int region_collect(lua_State *L)
 
 	if (region->rg_ExecBase)
 	{
-		TDBPRINTF(2, ("region collecting...\n"));
+		TDBPRINTF(TDB_TRACE,("region collecting...\n"));
 
 		freelist(region->rg_ExecBase, &region->rg_List);
 		region->rg_ExecBase = TNULL;
@@ -338,7 +338,7 @@ static int region_iterate(lua_State *L)
 
 	if (next)
 	{
-		TDBPRINTF(2, ("in iterate: %08x\n", node));
+		TDBPRINTF(TDB_TRACE,("in iterate: %08x\n", node));
 		lua_pushlightuserdata(L, next);
 		lua_pushlightuserdata(L, node);
 		return 2;
diff -r 2039cf5134fd -r fea98720bf39 tek/lib/visual_api.c
--- a/tek/lib/visual_api.c	Tue Apr 01 01:52:06 2008 +0200
+++ b/tek/lib/visual_api.c	Tue Apr 01 10:53:57 2008 +0200
@@ -262,7 +262,7 @@ tek_lib_visual_getmsg(lua_State *L)
 		}
 
 		if (fp->name == TNULL)
-			TDBPRINTF(10,("Unknown message at port\n"));
+			TDBPRINTF(TDB_ERROR,("Unknown message at port\n"));
 
 		lua_newtable(L);
 		lua_pushnumber(L, (lua_Number) imsg->timsg_TimeStamp.ttm_Sec * 1000 +
diff -r 2039cf5134fd -r fea98720bf39 tek/lib/visual_lua.c
--- a/tek/lib/visual_lua.c	Tue Apr 01 01:52:06 2008 +0200
+++ b/tek/lib/visual_lua.c	Tue Apr 01 10:53:57 2008 +0200
@@ -161,7 +161,7 @@ tek_lib_visual_open(lua_State *L)
 	}
 	else
 	{
-		TDBPRINTF(10,("Failed to open visual\n"));
+		TDBPRINTF(TDB_ERROR,("Failed to open visual\n"));
 		lua_pop(L, 2);
 		lua_pushnil(L);
 	}
@@ -175,7 +175,7 @@ tek_lib_visual_close(lua_State *L)
 {
 	TEKVisual *vis = luaL_checkudata(L, 1, TEK_LIB_VISUAL_CLASSNAME);
 
-	TDBPRINTF(2,("visual %08x closing\n", vis));
+	TDBPRINTF(TDB_TRACE,("visual %08x closing\n", vis));
 
 	TFree(vis->vis_Drawdata.pens);
 	vis->vis_Drawdata.pens = TNULL;
@@ -192,14 +192,14 @@ tek_lib_visual_close(lua_State *L)
 		luaL_unref(L, -1, vis->vis_refBase);
 		vis->vis_refBase = -1;
 		lua_pop(L, 1);
-		TDBPRINTF(2,("visual %08x unref'd\n", vis));
+		TDBPRINTF(TDB_TRACE,("visual %08x unref'd\n", vis));
 	}
 
 	if (vis->vis_Visual)
 	{
 		TVisualClose(vis->vis_Base, vis->vis_Visual);
 		vis->vis_Visual = TNULL;
-		TDBPRINTF(5,("visual instance %08x closed\n", vis));
+		TDBPRINTF(TDB_INFO,("visual instance %08x closed\n", vis));
 	}
 
 	if (vis->vis_isBase)
@@ -216,7 +216,7 @@ tek_lib_visual_close(lua_State *L)
 		}
 		/* collected visual base; remove TEKlib module: */
 		TRemModules((struct TModInitNode *) &im_visual, 0);
-		TDBPRINTF(5,("visual module removed\n"));
+		TDBPRINTF(TDB_INFO,("visual module removed\n"));
 	}
 
 	return 0;


More information about the tekui-devel mailing list