diff options
author | jeff <jeff@FreeBSD.org> | 2009-01-25 07:35:10 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2009-01-25 07:35:10 +0000 |
commit | d4c94410f6615f5725c1df4bb3d92f167767a8fa (patch) | |
tree | e4b27f4bfb769907b2543c513b7ba3dcf7e9af12 /sys/sys | |
parent | 63e5efcb881d21dcf1d5659711998289f9b6f3de (diff) | |
download | FreeBSD-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/sys')
-rw-r--r-- | sys/sys/pcpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h index ddda354..a1052e6 100644 --- a/sys/sys/pcpu.h +++ b/sys/sys/pcpu.h @@ -54,7 +54,7 @@ struct rm_queue { struct rm_queue* volatile rmq_prev; }; -#define PCPU_NAME_LEN (sizeof("CPU ") + sizeof(__STRING(MAXCPU) + 1)) +#define PCPU_NAME_LEN (sizeof("CPU ") + sizeof(__XSTRING(MAXCPU) + 1)) /* |