Why not filename and line number?
Why not filename and line number?
Posted Oct 1, 2010 10:44 UTC (Fri) by intgr (subscriber, #39733)In reply to: Why not filename and line number? by epa
Parent article: Organizing kernel messages
> controversial patch, even for linux-kernel, since it changes no
> functionality whatsoever)
Such "flag day" patches that require all developers to make the transition at the same time, only work for features with few users. This is because writing patches and merging them is an asynchronous task, trying to coordinate one change to happen on a particular "flag day" synchronizes the process and thus limits the throughput.
And even if you don't expect everyone to transition at the same time, a change that touches practically _every_ file in the source tree would still cause merge conflicts with a large portion of other patches that do real work, and that means lots of work for all maintainers. So in order to have numbered printk's, all other work will have to suffer. It's just not worth the cost for this feature.
It could only work if the conversion is done bit by bit, slowly enough that it has little measurable impact on the process -- but that would take a long time. So even if using CRC32 is a bit of a hack, it's a worthwhile tradeoff because we get similar functionality in no time and no impact.
(Disclaimer: I'm not a Linux kernel hacker, that's just my understanding of the process)
