SOURCES: udev-err.patch (NEW) - fix build with logging disabled

qboosh qboosh at pld-linux.org
Mon Oct 6 22:37:41 CEST 2008


Author: qboosh                       Date: Mon Oct  6 20:37:41 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix build with logging disabled

---- Files affected:
SOURCES:
   udev-err.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/udev-err.patch
diff -u /dev/null SOURCES/udev-err.patch:1.1
--- /dev/null	Mon Oct  6 22:37:42 2008
+++ SOURCES/udev-err.patch	Mon Oct  6 22:37:36 2008
@@ -0,0 +1,15 @@
+--- udev-129/udev/lib/libudev-private.h.orig	2008-09-30 23:54:56.000000000 +0200
++++ udev-129/udev/lib/libudev-private.h	2008-10-06 21:58:46.046638174 +0200
+@@ -35,9 +35,9 @@
+ #  define info(udev, arg...) udev_log(udev, LOG_INFO, __FILE__, __LINE__, __FUNCTION__, ## arg)
+ #  define err(udev, arg...) udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg)
+ #else
+-#  define dbg log_null
+-#  define info log_null
+-#  define err log_null
++#  define dbg(u, f...) log_null(u, f)
++#  define info(u, f...) log_null(u, f)
++#  define err(u, f...) log_null(u, f)
+ #endif
+ 
+ /* libudev */
================================================================


More information about the pld-cvs-commit mailing list