[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Additions to LVM-BUGS-0.8final



Falcon writes:
> Andreas Dilger escribi?:
> > Try to replace the sprintf() with:
> >
> > sprintf ( file_name, "%s/%s", dir, dir_ent->d_name);
>
>                sprintf ( file_name, "%s/%s", dir, dir_ent->d_name, 0);
                                                                    ^^^
> 
> And when compile it , it say that :
> 
> cc -c -pipe -Wall -O2 -D_GNU_SOURCE -DDEBUG -I/root/LVM/0.8final/tools/lib
> -I/root/LVM/0.8final/tools -o lvm_remove_recursive.o lvm_remove_recursive.c
> lvm_remove_recursive.c: In function `lvm_remove_recursive':
> lvm_remove_recursive.c:51: warning: too many arguments for format

That's because you have an extra "0" at the end, which I don't have.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]