summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2009-01-25 07:35:10 +0000
committerjeff <jeff@FreeBSD.org>2009-01-25 07:35:10 +0000
commitd4c94410f6615f5725c1df4bb3d92f167767a8fa (patch)
treee4b27f4bfb769907b2543c513b7ba3dcf7e9af12 /sys/kern/sched_4bsd.c
parent63e5efcb881d21dcf1d5659711998289f9b6f3de (diff)
downloadFreeBSD-src-d4c94410f6615f5725c1df4bb3d92f167767a8fa.zip
FreeBSD-src-d4c94410f6615f5725c1df4bb3d92f167767a8fa.tar.gz
- Use __XSTRING where I want the define to be expanded. This resulted in
sizeof("MAXCPU") being used to calculate a string length rather than something more reasonable such as sizeof("32"). This shouldn't have caused any ill effect until we run on machines with 1000000 or more cpus.
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index cf669c9..4fe1c14 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -82,7 +82,7 @@ dtrace_vtime_switch_func_t dtrace_vtime_switch_func;
#endif
#define NICE_WEIGHT 1 /* Priorities per nice level. */
-#define TS_NAME_LEN (MAXCOMLEN + sizeof(" td ") + sizeof(__STRING(UINT_MAX)))
+#define TS_NAME_LEN (MAXCOMLEN + sizeof(" td ") + sizeof(__XSTRING(UINT_MAX)))
/*
* The schedulable entity that runs a context.
OpenPOWER on IntegriCloud