1
0
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:
Alasdair Kergon 2001-10-25 15:07:26 +00:00
parent c9a97a795a
commit a4c0d9c2e4
3 changed files with 11 additions and 6 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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);