Author: avg
Date: Sat Sep 18 11:16:43 2010
New Revision: 212821
URL: http://svn.freebsd.org/changeset/base/212821
Log:
kern.sched.topology_spec sysctl: use step of 1 for group levels numeration
This is just a cosmetic change for prettier output.
'indent' variable/parameter serves two purposes: it specifies whitespace
indentation level and also implies cpu group level/depth.
It would have been better to split those two uses,
but for now just a simple change.
MFC after: 1 week
Modified:
head/sys/kern/sched_ule.c
Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c Sat Sep 18 08:45:43 2010 (r212820)
+++ head/sys/kern/sched_ule.c Sat Sep 18 11:16:43 2010 (r212821)
@@ -2648,7 +2648,7 @@ sysctl_kern_sched_topology_spec_internal
int i, first;
sbuf_printf(sb, "%*s<group level=\"%d\" cache-level=\"%d\">\n", indent,
- "", indent, cg->cg_level);
+ "", 1 + indent / 2, cg->cg_level);
sbuf_printf(sb, "%*s <cpu count=\"%d\" mask=\"0x%x\">", indent, "",
cg->cg_count, cg->cg_mask);
first = TRUE;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"