]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: print library errors
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Nov 2019 22:31:06 +0000 (17:31 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 6 Nov 2019 22:31:06 +0000 (17:31 -0500)
commit9fc3ef62c98f7dc3c6f15cf3efb9421085790d29
tree3b3c216361adaf9f90878edcc9c568da8f57a56d
parent64dabc9fa59439b1737fc81e1aa1f59637df3066
libfrog: print library errors

Add a libfrog library function that will print tagged error messages.
This will eliminate the need for a lot of open-coded:

errno = ret;
perror("...");

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
12 files changed:
io/bulkstat.c
io/imap.c
io/open.c
io/stat.c
io/swapext.c
libfrog/Makefile
libfrog/logging.c [new file with mode: 0644]
libfrog/logging.h [new file with mode: 0644]
quota/free.c
quota/quot.c
spaceman/file.c
spaceman/health.c