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:
parent
e2776725d7
commit
934eb1922a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123701
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user