svn commit: r215832 - stable/8/sys/compat/ndis
Bernhard Schmidt
bschmidt at FreeBSD.org
Thu Nov 25 18:40:56 UTC 2010
Author: bschmidt
Date: Thu Nov 25 18:40:56 2010
New Revision: 215832
URL: http://svn.freebsd.org/changeset/base/215832
Log:
MFC r213461:
Use the printf-like capability from kproc_create().
Submitted by: Paul B Mahol <onemda at gmail.com>
Committed by: thompsa
Modified:
stable/8/sys/compat/ndis/subr_ntoskrnl.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/compat/ndis/subr_ntoskrnl.c
==============================================================================
--- stable/8/sys/compat/ndis/subr_ntoskrnl.c Thu Nov 25 18:37:04 2010 (r215831)
+++ stable/8/sys/compat/ndis/subr_ntoskrnl.c Thu Nov 25 18:40:56 2010 (r215832)
@@ -274,7 +274,6 @@ ntoskrnl_libinit()
kdpc_queue *kq;
callout_entry *e;
int i;
- char name[64];
mtx_init(&ntoskrnl_dispatchlock,
"ntoskrnl dispatch lock", MTX_NDIS_LOCK, MTX_DEF|MTX_RECURSE);
@@ -321,9 +320,8 @@ ntoskrnl_libinit()
#endif
kq = kq_queues + i;
kq->kq_cpu = i;
- sprintf(name, "Windows DPC %d", i);
error = kproc_create(ntoskrnl_dpc_thread, kq, &p,
- RFHIGHPID, NDIS_KSTACK_PAGES, name);
+ RFHIGHPID, NDIS_KSTACK_PAGES, "Windows DPC %d", i);
if (error)
panic("failed to launch DPC thread");
}
@@ -334,9 +332,8 @@ ntoskrnl_libinit()
for (i = 0; i < WORKITEM_THREADS; i++) {
kq = wq_queues + i;
- sprintf(name, "Windows Workitem %d", i);
error = kproc_create(ntoskrnl_workitem_thread, kq, &p,
- RFHIGHPID, NDIS_KSTACK_PAGES, name);
+ RFHIGHPID, NDIS_KSTACK_PAGES, "Windows Workitem %d", i);
if (error)
panic("failed to launch workitem thread");
}
@@ -3382,7 +3379,6 @@ PsCreateSystemThread(handle, reqaccess,
void *thrctx;
{
int error;
- char tname[128];
thread_context *tc;
struct proc *p;
@@ -3393,9 +3389,8 @@ PsCreateSystemThread(handle, reqaccess,
tc->tc_thrctx = thrctx;
tc->tc_thrfunc = thrfunc;
- sprintf(tname, "windows kthread %d", ntoskrnl_kth);
error = kproc_create(ntoskrnl_thrfunc, tc, &p,
- RFHIGHPID, NDIS_KSTACK_PAGES, tname);
+ RFHIGHPID, NDIS_KSTACK_PAGES, "Windows Kthread %d", ntoskrnl_kth);
if (error) {
free(tc, M_TEMP);
More information about the svn-src-stable
mailing list