[teklib-general] teklib: A few debug levels and messages corrected
Timm S. Mueller
tmueller at neoscientists.org
Wed Jan 14 13:36:43 CET 2009
details: http://hg.teklib.org/teklib/rev/bad5efe40a85
changeset: 222:bad5efe40a85
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Sat Jan 10 03:04:39 2009 +0100
description:
A few debug levels and messages corrected
diffs (66 lines):
diff -r bfe0b2a7f498 -r bad5efe40a85 src/display_rawfb/display_fb_font.c
--- a/src/display_rawfb/display_fb_font.c Sat Jan 10 02:11:51 2009 +0100
+++ b/src/display_rawfb/display_fb_font.c Sat Jan 10 03:04:39 2009 +0100
@@ -414,15 +414,15 @@
else
{
/* load failed, free fontnode */
- TDBPRINTF(10, ("X unable to load '%s'\n", fattr.fname));
+ TDBPRINTF(TDB_ERROR,("X unable to load '%s'\n", fattr.fname));
TExecFree(mod->fbd_ExecBase, fn);
}
}
else
- TDBPRINTF(20, ("out of memory :(\n"));
+ TDBPRINTF(TDB_ERROR,("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;
}
@@ -441,7 +441,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));
//if (mod->fbd_DFB->CreateFont(mod->fbd_DFB, fontfile,
// &fdsc, &fn->font) == DFB_OK)
@@ -450,7 +450,7 @@
TExecFree(mod->fbd_ExecBase, fontfile);
}
else
- TDBPRINTF(20, ("out of memory :(\n"));
+ TDBPRINTF(TDB_ERROR,("out of memory\n"));
return succ;
}
diff -r bfe0b2a7f498 -r bad5efe40a85 src/display_x11/display_x11_font.c
--- a/src/display_x11/display_x11_font.c Sat Jan 10 02:11:51 2009 +0100
+++ b/src/display_x11/display_x11_font.c Sat Jan 10 03:04:39 2009 +0100
@@ -832,7 +832,7 @@
fn->attr |= FNT_BOLD;
/* 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->x11_fm.openfonts, &fn->handle.thn_Node);
font = (TAPTR)fn;
}
diff -r bfe0b2a7f498 -r bad5efe40a85 src/exec/exec_doexec.c
--- a/src/exec/exec_doexec.c Sat Jan 10 02:11:51 2009 +0100
+++ b/src/exec/exec_doexec.c Sat Jan 10 03:04:39 2009 +0100
@@ -361,8 +361,8 @@
if (exec->texb_NumTasks || exec->texb_NumInitTasks)
{
- TDBPRINTF(TDB_FAIL,("Number of tasks running: %d - initializing: %d\n",
- exec->texb_NumTasks, exec->texb_NumInitTasks));
+ TDBPRINTF(TDB_FAIL,("%d tasks still running, exiting forcibly\n",
+ exec->texb_NumTasks + exec->texb_NumInitTasks));
TDBFATAL();
}
More information about the teklib-general
mailing list