From 3d56c4bf434dcf911bf563f37c5ddd6875a24969 Mon Sep 17 00:00:00 2001 From: Kevin Murray Date: Tue, 30 May 2017 16:08:22 +1000 Subject: [PATCH] Fix logging message in SNP reading --- src/snp.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/snp.cc b/src/snp.cc index 4384c14..a977e73 100644 --- a/src/snp.cc +++ b/src/snp.cc @@ -14,7 +14,7 @@ SNP::read(string s) int ret = SNP::read_bed(s); return ret; } else if(ext == ".012") { - printf("+ .012 detected"); + printf("+ .012 detected\n"); } else { lerr("unrecognized file extension"); return -1; @@ -80,6 +80,8 @@ SNP::read(string s) fflush(stdout); } } + printf("\r%d locations read\n", loc); + Env::plog("missing snps", missing); Env::plog("0s snps", a0); @@ -239,6 +241,8 @@ SNP::read_bed(string s) fflush(stdout); } } + printf("\r%d locations read\n", loc); + Env::plog("missing snps", missing);