Gentoo Archives: gentoo-commits

From: "Matthias Schwarzott (zzam)" <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/udev/files: udev-129-fix-without-logging.diff
Date: Thu, 02 Oct 2008 22:10:47
Message-Id: E1KlWNf-0004fK-KM@stork.gentoo.org
1 zzam 08/10/02 22:10:43
2
3 Added: udev-129-fix-without-logging.diff
4 Log:
5 Version bumped. Needed a patch for compiling with --without-logging. This version should fix issues with detecting raid-partitions, related to missing large-file-support.
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.25-tuxonice-r6 i686)
7
8 Revision Changes Path
9 1.1 sys-fs/udev/files/udev-129-fix-without-logging.diff
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev-129-fix-without-logging.diff?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev-129-fix-without-logging.diff?rev=1.1&content-type=text/plain
13
14 Index: udev-129-fix-without-logging.diff
15 ===================================================================
16 commit d6b148cde2a8ca6dc32af2e1d95824ac3be926db
17 Author: Kay Sievers <kay.sievers@××××.org>
18 Date: Thu Oct 2 06:20:33 2008 +0200
19
20 fix compile error with --disable-logging
21
22 diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
23 index 7747b34..a9ad2f8 100644
24 --- a/udev/lib/libudev-private.h
25 +++ b/udev/lib/libudev-private.h
26 @@ -30,14 +30,14 @@ log_null(struct udev *udev, const char *format, ...) {}
27 # ifdef USE_DEBUG
28 # define dbg(udev, arg...) udev_log(udev, LOG_DEBUG, __FILE__, __LINE__, __FUNCTION__, ## arg)
29 # else
30 -# define dbg log_null
31 +# define dbg(udev, arg...) log_null(udev, ## arg)
32 # endif
33 # define info(udev, arg...) udev_log(udev, LOG_INFO, __FILE__, __LINE__, __FUNCTION__, ## arg)
34 # define err(udev, arg...) udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg)
35 #else
36 -# define dbg log_null
37 -# define info log_null
38 -# define err log_null
39 +# define dbg(udev, arg...) log_null(udev, ## arg)
40 +# define info(udev, arg...) log_null(udev, ## arg)
41 +# define err(udev, arg...) log_null(udev, ## arg)
42 #endif
43
44 /* libudev */