Fixes the sparse checker.
Also allows %v to be used in errorformat.
Merge pull request #585 from lcd047/sparse_fix

Fixes the sparse checker.