fd = open(fileName, O_CREAT | O_RDWR, 0664);
if (fd == -1) {
goto end;
- print_with_date (stderr, "Thread %d, open file error", threadNumber, strerror(errno));
+ print_with_date (stderr, "Thread %d, open file error\n", threadNumber, strerror(errno));
}
fd = open(fileName, O_CREAT | O_RDWR, 0664);
if (fd == -1) {
- print_with_date(stderr, "Open file error", strerror(errno));
+ print_with_date(stderr, "Open file error\n", strerror(errno));
goto end;
}
fd = open(fileName, O_CREAT | O_RDWR, 0664);
if (fd == -1) {
goto end;
- print_with_date (stderr, "Thread %d, open file error", threadNumber, strerror(errno));
+ print_with_date (stderr, "Thread %d, open file error\n", threadNumber, strerror(errno));
}
fd = open(fileName, O_CREAT | O_RDWR, 0664);
if (fd == -1) {
- print_with_date(stderr, "Open file error", strerror(errno));
+ print_with_date(stderr, "Open file error\n", strerror(errno));
goto end;
}