Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa print the correct error code if nfs_mount() fa...



details:   https://anonhg.NetBSD.org/src/rev/33825a700fec
branches:  trunk
changeset: 756970:33825a700fec
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 08 18:38:31 2010 +0000

description:
print the correct error code if nfs_mount() fails.

diffstat:

 sys/lib/libsa/dev_net.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 83ac91010ea7 -r 33825a700fec sys/lib/libsa/dev_net.c
--- a/sys/lib/libsa/dev_net.c   Sun Aug 08 18:31:50 2010 +0000
+++ b/sys/lib/libsa/dev_net.c   Sun Aug 08 18:38:31 2010 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index