From 20817e002894a3897f262938dba393296af10b53 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 26 Jul 2011 15:26:17 +0800 Subject: fixes stderr fprintf --- tests/storage/test_phrase_index.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/storage/test_phrase_index.cpp') diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp index 12cc398..b48d92c 100644 --- a/tests/storage/test_phrase_index.cpp +++ b/tests/storage/test_phrase_index.cpp @@ -93,7 +93,7 @@ int main(int argc, char * argv[]){ FILE* infile = fopen("../../data/gb_char.table", "r"); if ( NULL == infile ){ - printf("open gb_char.table failed!\n"); + fprintf(stderr, "open gb_char.table failed!\n"); exit(ENOENT); } @@ -102,7 +102,7 @@ int main(int argc, char * argv[]){ infile = fopen("../../data/gbk_char.table", "r"); if ( NULL == infile ){ - printf("open gbk_char.table failed!\n"); + fprintf(stderr, "open gbk_char.table failed!\n"); exit(ENOENT); } -- cgit