[linux-lvm] K=2.4.3 - LVM0.9.1.B7 compiling problem.

Patrick Caulfield caulfield at sistina.com
Wed Apr 25 14:30:07 UTC 2001


On Tue, Apr 24, 2001 at 01:09:19PM -0300, Ernesto Silva wrote:
> 
> I'm using gcc 2.96 from RedHat 7.0 and I downloaded the tarball.
> I also applied the patch from the tarball to the kernel.
> 

This patch works for me using gcc 3.0:


Index: lvm_log.h
===================================================================
RCS file: /home/cvs/LVM/tools/lib/lvm_log.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- lvm_log.h   2001/04/24 14:29:21     1.2
+++ lvm_log.h   2001/04/25 08:20:57     1.3
@@ -44,9 +44,9 @@
 void print_log(int level, const char *format, ...);
 
 #define plog(l, f, n, x, a...) print_log(l, "%s:%d " x "\n", f, n, ## a)
-#define lvm_info(x...) plog(LOG_INFO, __FILE__, __LINE__, "info: " ## x)
-#define lvm_warn(x...) plog(LOG_WARN, __FILE__, __LINE__, "warning: " ## x)
-#define lvm_err(x...) plog(LOG_ERROR, __FILE__, __LINE__, "error: " ## x)
+#define lvm_info(x...) plog(LOG_INFO, __FILE__, __LINE__, "info: " x)
+#define lvm_warn(x...) plog(LOG_WARN, __FILE__, __LINE__, "warning: " x)
+#define lvm_err(x...) plog(LOG_ERROR, __FILE__, __LINE__, "error: " x)
 
 #define lvm_fatal(x...) do {\
   plog(LOG_FATAL, __FILE__, __LINE__, "(FATAL) " ## x); \

patrick




More information about the linux-lvm mailing list