removed \n from errprint() and logprint() messages