summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2003-12-21 12:19:38 +0000
committergrehan <grehan@FreeBSD.org>2003-12-21 12:19:38 +0000
commit94a666f7b7a018e8c12195b22b206845ccf51d71 (patch)
tree72fc42e8d0b64abe1b4ae339bf021ff52f93b38b /sys/boot/ofw
parent35ca817f498833bb9b97acbcb9e103b985dfb928 (diff)
downloadFreeBSD-src-94a666f7b7a018e8c12195b22b206845ccf51d71.zip
FreeBSD-src-94a666f7b7a018e8c12195b22b206845ccf51d71.tar.gz
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
Diffstat (limited to 'sys/boot/ofw')
-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 a9e0fd6..68d95eb 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;
}
OpenPOWER on IntegriCloud