rf_debugMem.c: remove unused 'rc' variable for RF_DEBUG_MEM.

rf_driver.c: minor comment tweak.  Improve debugging output in
             RF_DEBUG_QUIESCE.
rf_states.c: fix argument to rf_PrintDAGList() in the
             RF_DEBUG_VALIDATE_DAG case.


Changes from Olivier Cherrier.  Thanks!!
This commit is contained in:
oster 2008-02-12 03:12:41 +00:00
parent df7679436b
commit ce72acea08
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_debugMem.c,v 1.18 2006/11/16 01:33:23 christos Exp $ */
/* $NetBSD: rf_debugMem.c,v 1.19 2008/02/12 03:12:41 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_debugMem.c,v 1.18 2006/11/16 01:33:23 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_debugMem.c,v 1.19 2008/02/12 03:12:41 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@ -118,7 +118,7 @@ int
rf_ConfigureDebugMem(RF_ShutdownList_t **listp)
{
#if RF_DEBUG_MEM
int i, rc;
int i;
rf_mutex_init(&rf_debug_mem_mutex);
if (rf_memDebug) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_driver.c,v 1.115 2007/12/05 08:39:46 ad Exp $ */
/* $NetBSD: rf_driver.c,v 1.116 2008/02/12 03:12:41 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.115 2007/12/05 08:39:46 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.116 2008/02/12 03:12:41 oster Exp $");
#include "opt_raid_diagnostic.h"
@ -148,7 +148,7 @@ RF_DECLARE_MUTEX(rf_printf_mutex) /* debug only: avoids interleaved
static int configureCount = 0; /* number of active configurations */
static int isconfigged = 0; /* is basic raidframe (non per-array)
* stuff configged */
* stuff configured */
RF_DECLARE_LKMGR_STATIC_MUTEX(configureMutex) /* used to lock the configuration
* stuff */
static RF_ShutdownList_t *globalShutdown; /* non array-specific
@ -801,7 +801,7 @@ rf_ResumeNewRequests(RF_Raid_t *raidPtr)
#if RF_DEBUG_QUIESCE
if (rf_quiesceDebug)
printf("Resuming new reqs\n");
printf("raid%d: Resuming new requests\n", raidPtr->raidid);
#endif
RF_LOCK_MUTEX(raidPtr->access_suspend_mutex);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_states.c,v 1.41 2007/07/29 12:50:22 ad Exp $ */
/* $NetBSD: rf_states.c,v 1.42 2008/02/12 03:12:41 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.41 2007/07/29 12:50:22 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.42 2008/02/12 03:12:41 oster Exp $");
#include <sys/errno.h>
@ -497,7 +497,7 @@ rf_State_CreateDAG(RF_RaidAccessDesc_t *desc)
if (rf_printDAGsDebug) {
dagList = desc->dagList;
for (i = 0; i < desc->numStripes; i++) {
rf_PrintDAGList(dagList.dags);
rf_PrintDAGList(dagList->dags);
dagList = dagList->next;
}
}