kprint; Avoid unnecessarily looping twice over the same string

strlen loops once and then the function looped again, avoid this
by not using strlen in the first place. Since we have to loop over
the string anyways, not using strlen also is no disadvantage.

Please note that this pull request is untested due to the fact that kprint didn't work for me in the first place, but whatever.