Just wanted to say thanks for the comment. You've probably saved me a good few minutes trying
to work out why seq_file kept calling my code.
It must be said, the seq_file interface is one of the uglier APIs I've seen in the kernel.
Clear and easy to use it is not.