![]() | |||||||||||||
Messages in this thread |
On Wed, Nov 19, 2003 at 01:32:38AM -0800, Paul Jackson wrote: > Wouldn't it be a good idea to pass in the length of the remaining > available buffer space and use snprintf, to avoid overruns? > We're going to end up with some pretty big cpumasks on some systems -- > running over a buffer would be nasty. It would mostly happen during > bring up of new bigger systems; but still worth avoiding. > A second thought - more controversial - long sequences of digits can get > pretty difficult to read. How about breaking them with a separator > character, say every 32 or 64 bits. I'm happy just to get the numbers into _some_ format that makes sense. This could very well be an improvement over the large hexadecimal number. I say run with it. -- wli - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 12:58 [from the cache] ©2003-2008 | |||||||||||||