diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-22 07:58:56 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-22 07:58:56 +0200 |
commit | b813710a4ca26743291cbdbbb3831d5a3e103356 (patch) | |
tree | eb8ec5e8f007a071b96525e701e4a7c8f0ea933f | |
parent | cb076959008f3b50abac3747b1b1bad2be2c8e6b (diff) | |
download | rpm-b813710a4ca26743291cbdbbb3831d5a3e103356.tar.gz rpm-b813710a4ca26743291cbdbbb3831d5a3e103356.tar.bz2 rpm-b813710a4ca26743291cbdbbb3831d5a3e103356.zip |
Take out __FILE__, __LINE__ from DBGREFS.
-rw-r--r-- | rpmio/rpmio.c | 11 | ||||
-rw-r--r-- | rpmio/rpmio.h | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 9bf08e53e..cd6312a65 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -193,21 +193,20 @@ DBGIO(fd, (stderr, "==> fdFdopen(%p,\"%s\") fdno %d -> fp %p fdno %d\n", cookie, */ FD_t fdLink (void * cookie, const char * msg) { - return fdio->_fdref(cookie, msg, __FILE__, __LINE__); + return fdio->_fdref(cookie, msg); } /** */ -static inline FD_t XfdLink(void * cookie, const char * msg, - const char * file, unsigned line) +static inline FD_t XfdLink(void * cookie, const char * msg) { FD_t fd; if (cookie == NULL) -DBGREFS(0, (stderr, "--> fd %p ++ %d %s at %s:%u\n", cookie, FDNREFS(cookie)+1, msg, file, line)); +DBGREFS(0, (stderr, "--> fd %p ++ %d %s\n", cookie, FDNREFS(cookie)+1, msg)); fd = c2f(cookie); if (fd) { fd->nrefs++; -DBGREFS(fd, (stderr, "--> fd %p ++ %d %s at %s:%u %s\n", fd, fd->nrefs, msg, file, line, fdbg(fd))); +DBGREFS(fd, (stderr, "--> fd %p ++ %d %s %s\n", fd, fd->nrefs, msg, fdbg(fd))); } return fd; } @@ -289,7 +288,7 @@ FD_t XfdNew(const char * msg, const char * file, unsigned line) fd->fileSize = 0; fd->fd_cpioPos = 0; - return XfdLink(fd, msg, file, line); + return XfdLink(fd, msg); } /** diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h index e81783205..354cba7b3 100644 --- a/rpmio/rpmio.h +++ b/rpmio/rpmio.h @@ -74,7 +74,7 @@ typedef int (*fdio_close_function_t) (void *cookie); /** */ typedef FD_t (*fdio_ref_function_t) ( void * cookie, - const char * msg, const char * file, unsigned line); + const char * msg); /** */ |