From 511bbd36af6cd02775da44e732d7947f287833c0 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 22 Aug 2017 02:45:49 +0200 Subject: [PATCH] qa: newlib: better messages in 100-files --- qa/lib/newlib/100-files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/lib/newlib/100-files.c b/qa/lib/newlib/100-files.c index ad0f5e8..7407369 100644 --- a/qa/lib/newlib/100-files.c +++ b/qa/lib/newlib/100-files.c @@ -21,13 +21,13 @@ main(int argc, char** argv) { i = fprintf(fp, "%s works.\n", "fprintf"); if(i <= 0){ fclose(fp); - printf("Can't write 'fprintf works.' to %s", output); + printf("Can't write 'fprintf works.' to %s (fprintf returned %d)", output, i); return 2; } i = fputs("fputs works.\n", fp); if(i == EOF){ fclose(fp); - printf("Can't write 'fputs works.' to %s", output); + printf("Can't write 'fputs works.' to %s (fputs returned EOF)", output); return 3; } fclose(fp);