On Mon, Nov 03, 2014 at 12:12:18PM -0500, Vince Weaver wrote: > I don't know if having an offset/mask helps much. Knowing your EINVAL > comes from ->config is nice to know, but if there's 30 different ways > to get an EINVAL from an improper config then you still can waste a lot > of time narrowing things down. > > The string solution might be nice, but it is going to take major changes > to the code and increase the size a bit. For example: > > $ cat arch/x86/kernel/cpu/perf* kernel/events/* | grep EINVAL | wc -l > 100 > > And some of the code is passing the return values back through various > long callchains (and overloaded pointers via casts) where it's not clear > how you could also pass a string value.
Yes, nobody said this would be a quick and easy exercise. But I figure something needs to happen. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/