Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Print vndattach error



details:   https://anonhg.NetBSD.org/src/rev/b476578af953
branches:  trunk
changeset: 339556:b476578af953
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Tue Jul 28 13:12:47 2015 +0000

description:
Print vndattach error

diffstat:

 sys/dev/vnd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f1bdb7c7d5ed -r b476578af953 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Tue Jul 28 12:32:44 2015 +0000
+++ b/sys/dev/vnd.c     Tue Jul 28 13:12:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.245 2015/05/25 21:02:37 prlw1 Exp $  */
+/*     $NetBSD: vnd.c,v 1.246 2015/07/28 13:12:47 prlw1 Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.245 2015/05/25 21:02:37 prlw1 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.246 2015/07/28 13:12:47 prlw1 Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vnd.h"
@@ -245,8 +245,8 @@
 
        error = config_cfattach_attach(vnd_cd.cd_name, &vnd_ca);
        if (error)
-               aprint_error("%s: unable to register cfattach\n",
-                   vnd_cd.cd_name);
+               aprint_error("%s: unable to register cfattach, error = %d\n",
+                   vnd_cd.cd_name, error);
 }
 
 static int



Home | Main Index | Thread Index | Old Index