hal/tools lshal.c,1.17,1.18

Danny Kukawka dkukawka at freedesktop.org
Mon Jan 9 05:08:10 PST 2006


Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv13789/tools

Modified Files:
	lshal.c 
Log Message:
006-01-09  Danny Kukawka  <danny.kukawka at web.de>

        * tools/lshal.c: (dump_children): removed unneeded code, (main):
        added more informative error message if connection to hald fails.



Index: lshal.c
===================================================================
RCS file: /cvs/hal/hal/tools/lshal.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- lshal.c	9 Nov 2005 21:13:31 -0000	1.17
+++ lshal.c	9 Jan 2006 13:08:08 -0000	1.18
@@ -201,9 +201,6 @@
 dump_children (char *udi, int num_devices, struct Device *devices, int depth)
 {
 	int i;
-	DBusError error;
-
-	dbus_error_init (&error);
 
 	for (i = 0; i < num_devices; i++) {
 		if (!udi) {
@@ -667,6 +664,8 @@
 	if (!libhal_ctx_init (hal_ctx, &error)) {
 		fprintf (stderr, "error: libhal_ctx_init: %s: %s\n",
 			 error.name, error.message);
+		fprintf (stderr, "Could not initialise connection to hald. \n "
+				 "Normally this mean the HAL daemon (hald) is not running or not ready.\n");
 		return 1;
 	}
 




More information about the hal-commit mailing list