qa: newlib: better messages in 100-files

This commit is contained in:
Giacomo Tesio 2017-08-22 02:45:49 +02:00
parent 965d316ac4
commit 511bbd36af
1 changed files with 2 additions and 2 deletions

View File

@ -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);