Remove static variables in kprint.c