Fix debug msg to output similar as in original sources.