Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe print the error code for writing parity.



details:   https://anonhg.NetBSD.org/src/rev/d20dc4babb10
branches:  trunk
changeset: 759966:d20dc4babb10
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 22 05:51:19 2010 +0000

description:
print the error code for writing parity.

diffstat:

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

diffs (28 lines):

diff -r f9d00dd3966f -r d20dc4babb10 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Wed Dec 22 05:46:25 2010 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Wed Dec 22 05:51:19 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.278 2010/12/11 03:12:10 mrg Exp $ */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.279 2010/12/22 05:51:19 christos Exp $    */
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -139,7 +139,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.278 2010/12/11 03:12:10 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.279 2010/12/22 05:51:19 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -2906,7 +2906,8 @@
        retcode = rf_RewriteParity(raidPtr);
        splx(s);
        if (retcode) {
-               printf("raid%d: Error re-writing parity!\n",raidPtr->raidid);
+               printf("raid%d: Error re-writing parity (%d)!\n",
+                   raidPtr->raidid, retcode);
        } else {
                /* set the clean bit!  If we shutdown correctly,
                   the clean bit on each component label will get



Home | Main Index | Thread Index | Old Index