[teklib-general] teklib: Minor clean-up in debug output

Timm S. Mueller tmueller at neoscientists.org
Sat Jan 10 01:35:23 CET 2009


details:   http://hg.teklib.org/teklib/rev/34deea179b6d
changeset: 215:34deea179b6d
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Fri Jan 02 20:56:12 2009 +0100
description:
Minor clean-up in debug output

diffs (truncated from 182 to 100 lines):

diff -r 11fd12433f7c -r 34deea179b6d src/display_directfb/display_dfb_api.c
--- a/src/display_directfb/display_dfb_api.c	Fri Jan 02 19:53:52 2009 +0100
+++ b/src/display_directfb/display_dfb_api.c	Fri Jan 02 20:56:12 2009 +0100
@@ -157,7 +157,7 @@
 	DFBWINDOW *v = req->tvr_Op.CloseWindow.Window;
 	if (v == TNULL) return;
 
-	TDBPRINTF(TDB_ERROR,("Visual close\n"));
+	TDBPRINTF(TDB_INFO,("Visual close\n"));
 
 	TRemove(&v->node);
 
diff -r 11fd12433f7c -r 34deea179b6d src/display_directfb/display_dfb_font.c
--- a/src/display_directfb/display_dfb_font.c	Fri Jan 02 19:53:52 2009 +0100
+++ b/src/display_directfb/display_dfb_font.c	Fri Jan 02 20:56:12 2009 +0100
@@ -83,7 +83,7 @@
 		if (flen > 0)
 			myfname = TExecAlloc0(exec, mod->dfb_MemMgr, flen + 1);
 		else
-			TDBPRINTF(20, ("found invalid font: '%s'\n", filename));
+			TDBPRINTF(TDB_ERROR,("found invalid font: '%s'\n", filename));
 
 		if (myfname)
 		{
@@ -94,7 +94,7 @@
 		else
 		{
 			if (flen > 0)
-				TDBPRINTF(20, ("out of memory :(\n"));
+				TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 		}
 
 		if (fqnode->tags[0].tti_Value)
@@ -118,7 +118,7 @@
 
 	} /* endif fqnode */
 	else
-		TDBPRINTF(20, ("out of memory :(\n"));
+		TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 
 	return fqnode;
 }
@@ -243,13 +243,13 @@
 				}
 				else
 				{
-					TDBPRINTF(20, ("out of memory :(\n"));
+					TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 					break;
 				}
 			}
 			else
 			{
-				TDBPRINTF(20, ("out of memory :(\n"));
+				TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 				break;
 			}
 
@@ -292,7 +292,7 @@
 			tempname = TExecAlloc0(exec, mod->dfb_MemMgr, len+1);
 			if (!tempname)
 			{
-				TDBPRINTF(20, ("out of memory :(\n"));
+				TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 				return -1;
 			}
 
@@ -390,22 +390,22 @@
 				*/
 
 				/* append to the list of open fonts */
-				TDBPRINTF(TDB_WARN, ("O '%s' %dpx\n", fattr.fname, fattr.fpxsize));
+				TDBPRINTF(TDB_INFO, ("O '%s' %dpx\n", fattr.fname, fattr.fpxsize));
 				TAddTail(&mod->dfb_fm.openfonts, &fn->handle.thn_Node);
 				font = (TAPTR)fn;
 			}
 			else
 			{
 				/* load failed, free fontnode */
-				TDBPRINTF(10, ("X unable to load '%s'\n", fattr.fname));
+				TDBPRINTF(TDB_WARN,("X unable to load '%s'\n", fattr.fname));
 				TExecFree(exec, fn);
 			}
 		}
 		else
-			TDBPRINTF(20, ("out of memory :(\n"));
+			TDBPRINTF(TDB_FAIL,("out of memory :(\n"));
 	}
 	else
-		TDBPRINTF(20, ("X invalid fontname '%s' specified\n", fattr.fname));
+		TDBPRINTF(TDB_ERROR,("X invalid fontname '%s' specified\n", fattr.fname));
 
 	return font;
 }
@@ -425,7 +425,7 @@
 		fdsc.height = fattr->fpxsize;
 
 		sprintf(fontfile, "%s%s.ttf", FNT_DEFDIR, fattr->fname);
-		TDBPRINTF(TDB_WARN, ("? %s\n", fontfile));
+		TDBPRINTF(TDB_INFO, ("? %s\n", fontfile));


More information about the teklib-general mailing list