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 --- utils/storage/gen_binary_files.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/storage/gen_binary_files.cpp') diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp index f8d3c70..5d32b58 100644 --- a/utils/storage/gen_binary_files.cpp +++ b/utils/storage/gen_binary_files.cpp @@ -30,7 +30,7 @@ int main(int argc, char * argv[]){ FILE * gbfile = fopen("../../data/gb_char.table", "r"); if ( gbfile == NULL) { - printf("open gb_char.table failed!"); + fprintf(stderr, "open gb_char.table failed!"); return 1; } @@ -42,7 +42,7 @@ int main(int argc, char * argv[]){ FILE * gbkfile = fopen("../../data/gbk_char.table","r"); if ( gbkfile == NULL) { - printf("open gb_char.table failed!"); + fprintf(stderr, "open gb_char.table failed!"); return 1; } @@ -67,7 +67,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); } @@ -76,7 +76,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