svn commit: r211512 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Thu Aug 19 16:38:58 UTC 2010
Author: jhb
Date: Thu Aug 19 16:38:58 2010
New Revision: 211512
URL: http://svn.freebsd.org/changeset/base/211512
Log:
Fix a whitespace nit and remove a questioning comment. STAILQ_CONCAT()
does require the STAILQ the existing list is being added to to already
be initialized (it is CONCAT() vs MOVE()).
Modified:
head/sys/kern/kern_ktrace.c
Modified: head/sys/kern/kern_ktrace.c
==============================================================================
--- head/sys/kern/kern_ktrace.c Thu Aug 19 16:29:08 2010 (r211511)
+++ head/sys/kern/kern_ktrace.c Thu Aug 19 16:38:58 2010 (r211512)
@@ -107,7 +107,7 @@ static int data_lengths[] = {
0, /* KTR_NAMEI */
sizeof(struct ktr_genio), /* KTR_GENIO */
sizeof(struct ktr_psig), /* KTR_PSIG */
- sizeof(struct ktr_csw), /* KTR_CSW */
+ sizeof(struct ktr_csw), /* KTR_CSW */
0, /* KTR_USER */
0, /* KTR_STRUCT */
0, /* KTR_SYSCTL */
@@ -336,7 +336,7 @@ ktr_drain(struct thread *td)
ktrace_assert(td);
sx_assert(&ktrace_sx, SX_XLOCKED);
- STAILQ_INIT(&local_queue); /* XXXRW: needed? */
+ STAILQ_INIT(&local_queue);
if (!STAILQ_EMPTY(&td->td_proc->p_ktr)) {
mtx_lock(&ktrace_mtx);
More information about the svn-src-all
mailing list