- Timestamp:
- Jan 29, 2008, 1:34:47 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp
r71 r72 40 40 ); 41 41 42 msg(_("%s"),param->print(1).c_str()) :42 msg(_("%s"),param->print(1).c_str()); 43 43 44 44 test (name,param); … … 46 46 catch (morpheo::ErrorMorpheo & error) 47 47 { 48 msg (_("<%s> : %s.\n"),name , error.what ());48 msg (_("<%s> : %s.\n"),name.c_str(), error.what ()); 49 49 exit (EXIT_FAILURE); 50 50 } 51 51 catch (...) 52 52 { 53 54 err (_("<%s> : This test must generate a error.\n"),name); 53 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 55 54 exit (EXIT_FAILURE); 56 55 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp
r71 r72 13 13 #define CYCLE_MAX (128*NB_ITERATION) 14 14 15 #define LABEL(str ) \15 #define LABEL(str...) \ 16 16 { \ 17 msg (_("{%d} %s\n"),static_cast<uint32_t>(sc_simulation_time()),str); \ 18 } while(0) 17 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \ 18 msg (str); \ 19 msg (_("\n")); \ 20 } while(0) 19 21 20 22 #define SC_START(cycle_offset) \ … … 100 102 for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) 101 103 { 102 LABEL("Iteration "+toString(iteration));104 LABEL("Iteration %d",iteration); 103 105 104 106 SC_START(1);
Note: See TracChangeset
for help on using the changeset viewer.