Improve debug output.

This commit is contained in:
Simon Ruderich
2013-06-05 00:53:55 +02:00
parent df4c9eab97
commit d475e5ec89
2 changed files with 35 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ static int check_handle_fd(int fd) {
static void dup_fd(int oldfd, int newfd) {
#ifdef DEBUG
debug("%d -> %d\t\t\t[%d]\n", oldfd, newfd, getpid());
debug("%3d -> %3d\t\t\t[%d]\n", oldfd, newfd, getpid());
#endif
if (!initialized) {
@@ -105,7 +105,7 @@ static void dup_fd(int oldfd, int newfd) {
static void close_fd(int fd) {
#ifdef DEBUG
debug("%d -> .\t\t\t[%d]\n", fd, getpid());
debug("%3d -> .\t\t\t[%d]\n", fd, getpid());
#endif
if (!initialized) {