diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-11-28 08:57:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-11-28 08:57:03 +0000 |
commit | 0d7446c134c4b77dcc7b796698e224a809a0d4db (patch) | |
tree | 814f4bee114b9d712abc53416138b3f2e8704bcf /tests/libtest/lib518.c | |
parent | a4752673bb1a2c74c0cb2042ad9154c833585cf8 (diff) | |
download | curl-0d7446c134c4b77dcc7b796698e224a809a0d4db.tar.gz |
add more info to the stderr output
Diffstat (limited to 'tests/libtest/lib518.c')
-rw-r--r-- | tests/libtest/lib518.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index 4be7b7f85..e626e54cb 100644 --- a/tests/libtest/lib518.c +++ b/tests/libtest/lib518.c @@ -43,6 +43,10 @@ static int rlimit(void) { struct rlimit rl; + + fprintf(stderr, "NUM_OPEN: %d\n", NUM_OPEN); + fprintf(stderr, "NUM_NEEDED: %d\n", NUM_NEEDED); + /* get open file limits */ if (getrlimit(RLIMIT_NOFILE, &rl) == -1) { fprintf(stderr, "warning: getrlimit: failed to get RLIMIT_NOFILE\n"); @@ -51,7 +55,8 @@ static int rlimit(void) /* check that hard limit is high enough */ if (rl.rlim_max < NUM_NEEDED) { - fprintf(stderr, "warning: RLIMIT_NOFILE hard limit is too low\n"); + fprintf(stderr, "warning: RLIMIT_NOFILE hard limit %d < %d\n", + (int)rl.rlim_max, NUM_NEEDED); return -1; } |