Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Also print b_error in the IO Error message



details:   https://anonhg.NetBSD.org/src/rev/d43b78a032b5
branches:  trunk
changeset: 335326:d43b78a032b5
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Sat Jan 03 11:48:04 2015 +0000

description:
Also print b_error in the IO Error message

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r c6036e0fc584 -r d43b78a032b5 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Sat Jan 03 11:22:14 2015 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Sat Jan 03 11:48:04 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.321 2015/01/02 19:42:07 christos Exp $    */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.322 2015/01/03 11:48:04 prlw1 Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.321 2015/01/02 19:42:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.322 2015/01/03 11:48:04 prlw1 Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -2279,8 +2279,9 @@
                      rf_ds_used_spare)) && 
                     (queue->raidPtr->numFailures <
                      queue->raidPtr->Layout.map->faultsTolerated)) {
-                       printf("raid%d: IO Error.  Marking %s as failed.\n",
+                       printf("raid%d: IO Error (%d). Marking %s as failed.\n",
                               queue->raidPtr->raidid,
+                              bp->b_error,
                               queue->raidPtr->Disks[queue->col].devname);
                        queue->raidPtr->Disks[queue->col].status =
                            rf_ds_failed;



Home | Main Index | Thread Index | Old Index