aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2003-12-21 12:19:38 +0000
committerPeter Grehan <grehan@FreeBSD.org>2003-12-21 12:19:38 +0000
commit934eb1922aad2ebdc9fceb309828248852166111 (patch)
tree72fc42e8d0b64abe1b4ae339bf021ff52f93b38b
parente2776725d7bfd8e3fda1f90702dc0e34118009ee (diff)
downloadsrc-934eb1922aad2ebdc9fceb309828248852166111.tar.gz
src-934eb1922aad2ebdc9fceb309828248852166111.zip
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
Notes
Notes: svn path=/head/; revision=123701
-rw-r--r--sys/boot/ofw/libofw/ofw_copy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_copy.c b/sys/boot/ofw/libofw/ofw_copy.c
index a9e0fd6bd27d..68d95eb97d89 100644
--- a/sys/boot/ofw/libofw/ofw_copy.c
+++ b/sys/boot/ofw/libofw/ofw_copy.c
@@ -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;
}