Module Name: src
Committed By: chs
Date: Sun Aug 8 18:38:31 UTC 2010
Modified Files:
src/sys/lib/libsa: dev_net.c
Log Message:
print the correct error code if nfs_mount() fails.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/lib/libsa/dev_net.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/dev_net.c
diff -u src/sys/lib/libsa/dev_net.c:1.24 src/sys/lib/libsa/dev_net.c:1.25
--- src/sys/lib/libsa/dev_net.c:1.24 Sat Jan 17 14:00:36 2009
+++ src/sys/lib/libsa/dev_net.c Sun Aug 8 18:38:31 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: dev_net.c,v 1.24 2009/01/17 14:00:36 tsutsui Exp $ */
+/* $NetBSD: dev_net.c,v 1.25 2010/08/08 18:38:31 chs Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
/* Get the NFS file handle (mountd). */
error = nfs_mount(netdev_sock, rootip, rootpath);
if (error) {
- printf("NFS mount error=%d\n", error);
+ printf("NFS mount error=%d\n", errno);
rootip.s_addr = 0;
fail:
netif_close(netdev_sock);