mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
o fopen error message
o debug options in makefile
This commit is contained in:
parent
c9a97a795a
commit
a4c0d9c2e4
@ -140,13 +140,13 @@ int persistent_filter_dump(struct dev_filter *f)
|
||||
{
|
||||
struct pfilter *pf = (struct pfilter *) f->private;
|
||||
|
||||
FILE *fp = fopen(pf->file, "w");
|
||||
FILE *fp;
|
||||
|
||||
log_very_verbose("Dumping persistent device cache to %s", pf->file);
|
||||
|
||||
fp = fopen(pf->file, "w");
|
||||
if (!fp) {
|
||||
log_error("Couldn't open '%s' for to hold valid devices.",
|
||||
pf->file);
|
||||
log_sys_error("fopen", pf->file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -50,11 +50,15 @@ endif
|
||||
SUFFIXES=
|
||||
SUFFIXES=.c .d .o
|
||||
|
||||
CFLAGS+=-g -Wall
|
||||
CFLAGS+=-Wall
|
||||
CFLAGS+=-O2
|
||||
CFLAGS+=-g -fno-omit-frame-pointer
|
||||
#CFLAGS+=-pg
|
||||
CFLAGS+=-DDEBUG_MEM -DDEBUG
|
||||
#CFLAGS+=-DBOUNDS_CHECK
|
||||
INCLUDES+=-I. -I$(top_srcdir)/include
|
||||
INC_LNS=$(top_srcdir)/include/.symlinks_created
|
||||
LD_FLAGS=-pg
|
||||
|
||||
ifeq ("@READLINE@", "yes")
|
||||
CFLAGS += -DREADLINE_SUPPORT
|
||||
|
@ -43,7 +43,8 @@ TARGETS=\
|
||||
include ../make.tmpl
|
||||
|
||||
lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o lvm $(OBJECTS) -L$(top_srcdir)/lib -llvm $(EXTRA_LIBS)
|
||||
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib -llvm \
|
||||
$(EXTRA_LIBS)
|
||||
|
||||
install:
|
||||
$(INSTALL) -c -d $(sbindir);
|
||||
|
Loading…
Reference in New Issue
Block a user