Reporting cleaned up and levels made more consistent.

This commit is contained in:
robijn
2002-07-14 20:30:33 +00:00
parent 380000357d
commit c8fc08f6e3
24 changed files with 305 additions and 375 deletions
+4 -4
View File
@@ -72,18 +72,18 @@ widget_create (char *id, WidgetType type, Screen * screen)
{
Widget * w;
report (RPT_INFO, "widget_create(%s,%d)", id, type);
debug (RPT_DEBUG, "%s( id=\"%s\", type=%d, screen=[%s] )", __FUNCTION__, id, type, screen->id );
/* Create it */
w = malloc (sizeof (Widget));
if (!w) {
report (RPT_DEBUG, "widget_create: Error allocating");
report (RPT_DEBUG, "%s: Error allocating", __FUNCTION__);
return NULL;
}
w->id = strdup(id);
if (!w->id) {
report (RPT_DEBUG, "widget_create: Error allocating");
report (RPT_DEBUG, "%s: Error allocating", __FUNCTION__);
return NULL;
}
@@ -119,7 +119,7 @@ widget_create (char *id, WidgetType type, Screen * screen)
int
widget_destroy (Widget * w)
{
debug (RPT_INFO, "widget_destroy(%s)", w->id);
debug (RPT_DEBUG, "%s( w=[%s] )", __FUNCTION__, w->id);
if (!w)
return -1;