# HG changeset patch # User masa # Date 1391676906 -32400 # Node ID 1f297d3eacb10b343b16cf32bf68ea6f04cc3581 # Parent f3e9f811c3875ea6099a25e030f555472cbc5d81 fix bugs diff -r f3e9f811c387 -r 1f297d3eacb1 example/regex_mas/main.cc --- a/example/regex_mas/main.cc Thu Feb 06 16:30:41 2014 +0900 +++ b/example/regex_mas/main.cc Thu Feb 06 17:55:06 2014 +0900 @@ -253,7 +253,7 @@ if (divide_read_flag != 0) { printf("[divide read mode]\n"); - w->file_mmap = (char*)manager->allocate(sizeof(w->read_filesize)); + w->file_mmap = (char*)manager->allocate(w->read_filesize); }else { printf("[mmap mode]\n"); r_read = manager->create_task(MMAP , (memaddr)&w->self, sizeof(memaddr),0,0); diff -r f3e9f811c387 -r 1f297d3eacb1 example/regex_mas/ppe/Exec.cc --- a/example/regex_mas/ppe/Exec.cc Thu Feb 06 16:30:41 2014 +0900 +++ b/example/regex_mas/ppe/Exec.cc Thu Feb 06 17:55:06 2014 +0900 @@ -45,9 +45,9 @@ o_data[0] = 0; o_data[0] = BM_method(i_data,length,search_word,sw_len,skip_table); - printf("match count : %llu\n",o_data[0]); - long task_count = (long)s->get_param(0); //何番目のtaskか - s->printf("[start exec No: %lld]\n",task_count+1); + //printf("match count : %llu\n",o_data[0]); + //long task_count = (long)s->get_param(0); //何番目のtaskか + //s->printf("[start exec No: %lld]\n",task_count+1); return 0;