summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_engine.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-10-02 21:48:00 +0000
committeroster <oster@NetBSD.org>2002-10-02 21:48:00 +0000
commit9fbf5b5d27eb086ae86cf93fe3faf9abe73e2948 (patch)
tree31fa2635c7afb7aa447f0b939f8fb266c6f09387 /sys/dev/raidframe/rf_engine.c
parent47ae4d5c59a7343119e819faef7c03d7f129d501 (diff)
Create a thread creation macro that make it easier to name the DAG process.
Use it to have the DAGExecutionThread have a better name for each RAID process ('raid0', 'raid1', etc., vs. just 'raid', 'raid', etc.)
Diffstat (limited to 'sys/dev/raidframe/rf_engine.c')
-rw-r--r--sys/dev/raidframe/rf_engine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_engine.c b/sys/dev/raidframe/rf_engine.c
index a086a92bffd..828dc7148ff 100644
--- a/sys/dev/raidframe/rf_engine.c
+++ b/sys/dev/raidframe/rf_engine.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.20 2002/10/02 14:38:53 oster Exp $ */
+/* $NetBSD: rf_engine.c,v 1.21 2002/10/02 21:48:00 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -55,7 +55,7 @@
****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.20 2002/10/02 14:38:53 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.21 2002/10/02 21:48:00 oster Exp $");
#include "rf_threadstuff.h"
@@ -139,7 +139,7 @@ rf_ConfigureEngine(
if (rf_engineDebug) {
printf("raid%d: Creating engine thread\n", raidPtr->raidid);
}
- if (RF_CREATE_THREAD(raidPtr->engine_thread, DAGExecutionThread, raidPtr,"raid")) {
+ if (RF_CREATE_ENGINE_THREAD(raidPtr->engine_thread, DAGExecutionThread, raidPtr,"raid%d",raidPtr->raidid)) {
RF_ERRORMSG("RAIDFRAME: Unable to create engine thread\n");
return (ENOMEM);
}