Format warnings in a way compatible with Unix tools.