From: Daniel Stenberg Date: Sun, 28 Nov 2004 08:57:03 +0000 (+0000) Subject: add more info to the stderr output X-Git-Tag: upstream/7.37.1~11862 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d7446c134c4b77dcc7b796698e224a809a0d4db;p=platform%2Fupstream%2Fcurl.git add more info to the stderr output --- diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index 4be7b7f..e626e54 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; }