diff example/get_segment/spe/Hello.cc @ 836:74fd8d2a7b9d draft

example fix 50%
author tkaito
date Tue, 25 May 2010 19:13:28 +0900
parents 0e91ddaad798
children d7b0c0f8514c
line wrap: on
line diff
--- a/example/get_segment/spe/Hello.cc	Tue May 25 03:41:10 2010 +0900
+++ b/example/get_segment/spe/Hello.cc	Tue May 25 19:13:28 2010 +0900
@@ -33,10 +33,15 @@
     char *fmt = "char [%0x] offset [%0x]\n";
     int offset = rel_offset();
 
-    smanager->fprintf(smanager->stderr_,fmt+offset, fmt, offset);
+    //smanager->fprintf(smanager->stderr_,fmt+offset, fmt, offset);
+
+    //smanager->fprintf(smanager->stderr_,"[%d] Hello, World!! Seg1 \n"+offset, task_id);
+    //smanager->fprintf(smanager->stderr_,"pc=0x%0x 0x%0lx\n"+offset,pc, (unsigned long)&runTask_Hello);
 
-    smanager->fprintf(smanager->stderr_,"[%d] Hello, World!! Seg1 \n"+offset, task_id);
-    smanager->fprintf(smanager->stderr_,"pc=0x%0x 0x%0lx\n"+offset,pc, (unsigned long)&runTask_Hello);
+    smanager->printf(fmt+offset, fmt, offset);
+
+    smanager->printf("[%d] Hello, World!! Seg1 \n"+offset, task_id);
+    smanager->printf("pc=0x%0x 0x%0lx\n"+offset,pc, (unsigned long)&runTask_Hello);
 
     return 0;
 }