changeset 1950:1f297d3eacb1 draft

fix bugs
author masa
date Thu, 06 Feb 2014 17:55:06 +0900
parents f3e9f811c387
children 7459db74ec3e
files example/regex_mas/main.cc example/regex_mas/ppe/Exec.cc
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;