Only print out an error if returned data size is < 0. A value of 0

happens almost every time at the end of a file when using NFS.

No objection by: sparc64
This commit is contained in:
Peter Grehan 2003-12-21 12:19:38 +00:00
parent e2776725d7
commit 934eb1922a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123701

View File

@ -98,7 +98,8 @@ ofw_readin(const int fd, vm_offset_t dest, const size_t len)
got = read(fd, buf, get);
if (got <= 0) {
printf("ofw_readin: read failed\n");
if (got < 0)
printf("ofw_readin: read failed\n");
break;
}