aboutsummaryrefslogtreecommitdiffstats
path: root/widget.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-12-31 06:24:00 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-12-31 06:24:00 +0000
commit457102be1ccf791d2a70902dfd3eabf408744d8d (patch)
tree53aac19e062bc2338cc42f2e071bd48d22f73a10 /widget.c
parentdb6f8bf4db26cc0dd4349f2d67b90c6802c5a772 (diff)
downloadlcd4linux-457102be1ccf791d2a70902dfd3eabf408744d8d.tar.gz
r828: 'additional verbose and info messages' ported from volker_dev
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@922 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widget.c b/widget.c
index eb37843..5f5f6a7 100644
--- a/widget.c
+++ b/widget.c
@@ -200,7 +200,7 @@ int widget_add(const char *name, const int type, const int layer, const int row,
/* another sanity check */
if (nWidgets >= MAX_WIDGETS) {
- error("internal error: widget buffer full!");
+ error("internal error: widget buffer full! Tried to allocate %d widgets (max: %s)", nWidgets, MAX_WIDGETS);
return -1;
}
@@ -227,6 +227,9 @@ int widget_add(const char *name, const int type, const int layer, const int row,
Widget->row = row;
Widget->col = col;
+ info(" widget '%s': Class '%s', Parent '%s', Layer %d, Row %d, Col %d",
+ name, (NULL == Class) ? "<none>" : Class->name, (NULL == Parent) ? "<root>" : Parent->name, layer, row, col);
+
if (Class->init != NULL) {
Class->init(Widget);
}