Mercurial > hg > Members > kono > Cerium
diff example/get_segment/ppe/Hello1.cc @ 466:4fa8760e18c2
prohibit global variable in Task....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 17:33:58 +0900 |
parents | 01b321c86747 |
children | 60aa3f241b10 |
line wrap: on
line diff
--- a/example/get_segment/ppe/Hello1.cc Wed Sep 30 11:37:15 2009 +0900 +++ b/example/get_segment/ppe/Hello1.cc Thu Oct 01 17:33:58 2009 +0900 @@ -1,4 +1,3 @@ -#include <stdio.h> #include "Hello1.h" #include "Func.h" @@ -35,8 +34,8 @@ #endif - fprintf(stderr,"Hello1 sizeof(int) = [%d] sizeof(void*)=[%d]\n", (int)sizeof(int),(int)sizeof(void*)); - fprintf(stderr,"[%d] Main Mem %0x len %d\n", task_id, (unsigned int)next,(int)SIZE); + smanager->fprintf(smanager->stderr_,"Hello1 sizeof(int) = [%d] sizeof(void*)=[%d]\n", (int)sizeof(int),(int)sizeof(void*)); + smanager->fprintf(smanager->stderr_,"[%d] Main Mem %0x len %d\n", task_id, (unsigned int)next,(int)SIZE); return 0; }