hal/hald hald_runner.c,1.7,1.8

Danny Kukawka dkukawka at kemper.freedesktop.org
Tue May 9 13:34:39 PDT 2006


Update of /cvs/hal/hal/hald
In directory kemper:/tmp/cvs-serv28920/hald

Modified Files:
	hald_runner.c 
Log Message:
2006-05-09  Danny Kukawka  <danny.kukawka at web.de>

        Added support for --use-syslog option to prober and addons. This
        should allow easy logging complete hal debug information to syslog
        if hald run in daemon mode:

        * hald/hald_runner.c: (add_basic_env): added HALD_USE_SYSLOG to env
        * hald/linux2/probing/shared.h: added support for HALD_USE_SYSLOG

        Replaced in prober and addons old debug code with support for
        --use-syslog instead of log to sterr.

        * hald/linux2/addons/addon-acpi.c: (main):
        * hald/linux2/addons/addon-hid-ups.c: (ups_get_string), (main):
        * hald/linux2/addons/addon-pmu.c: (main):
        * hald/linux2/addons/addon-storage.c: (main):
        * hald/linux2/addons/addon-usb-csr.c: (main):
        * hald/linux2/probing/probe-input.c: (main):
        * hald/linux2/probing/probe-pc-floppy.c: (main):
        * hald/linux2/probing/probe-printer.c: (main):
        * hald/linux2/probing/probe-serial.c: (main):
        * hald/linux2/probing/probe-smbios.c: (main): also fixed set debug
        option before use dbg() the first time
        * hald/linux2/probing/probe-storage.c: (main): replaced printf with
        dbg() and removed some needless debug lines.
        * hald/linux2/probing/probe-volume.c: (main):



Index: hald_runner.c
===================================================================
RCS file: /cvs/hal/hal/hald/hald_runner.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- hald_runner.c	4 May 2006 19:40:16 -0000	1.7
+++ hald_runner.c	9 May 2006 20:34:37 -0000	1.8
@@ -172,6 +172,10 @@
   if (hald_is_initialising) {
     add_env(iter, "HALD_STARTUP", "1");
   }
+  if (hald_use_syslog) {
+    add_env(iter, "HALD_USE_SYSLOG", "1");
+  }
+
   add_env(iter, "UDI", udi);
   add_env(iter, "HALD_DIRECT_ADDR", hald_dbus_local_server_addr());
 }




More information about the hal-commit mailing list