Changeset 2204 for trunk/psLib/test/sysUtils/tst_psLogMsg.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psLogMsg.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psLogMsg.c
r1702 r2204 8 8 #include "psTest.h" 9 9 10 static inttestLogMsg00();11 static inttestLogMsg01();12 static inttestLogMsg02();13 static inttestLogMsg03();14 static inttestLogMsg04();15 static inttestLogMsg05();10 static psS32 testLogMsg00(); 11 static psS32 testLogMsg01(); 12 static psS32 testLogMsg02(); 13 static psS32 testLogMsg03(); 14 static psS32 testLogMsg04(); 15 static psS32 testLogMsg05(); 16 16 17 17 testDescription tests[] = { … … 39 39 }; 40 40 41 int main( intargc, char* argv[] )41 psS32 main( psS32 argc, char* argv[] ) 42 42 { 43 43 psLogSetLevel( PS_LOG_INFO ); … … 48 48 49 49 static void myLogMsg(const char *name, 50 intlevel,50 psS32 level, 51 51 const char *fmt, 52 52 ...) … … 60 60 } 61 61 62 static inttestLogMsg00()63 { 64 inti = 0;62 static psS32 testLogMsg00() 63 { 64 psS32 i = 0; 65 65 66 66 // Send a log messages for levels 0:9. Only the first four messages … … 74 74 } 75 75 76 static inttestLogMsg01()77 { 78 inti = 0;76 static psS32 testLogMsg01() 77 { 78 psS32 i = 0; 79 79 80 80 // Send a log messages for levels 0:9. Only the first four messages … … 88 88 } 89 89 90 static inttestLogMsg02()90 static psS32 testLogMsg02() 91 91 { 92 92 93 93 psLogSetLevel(9); 94 94 // Send a log messages for levels 0:9. 95 for ( inti=0;i<10;i++) {95 for (psS32 i=0;i<10;i++) { 96 96 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 97 97 } … … 105 105 } 106 106 107 static inttestLogMsg03()108 { 109 inti;107 static psS32 testLogMsg03() 108 { 109 psS32 i; 110 110 111 111 fprintf(stderr,"------------- psLogSetFormat() -------------\n"); … … 161 161 162 162 163 inttestLogMsg04()163 psS32 testLogMsg04() 164 164 { 165 165 psLogMsg("Under 15 chars", 0, "Hello World!\n"); … … 173 173 } 174 174 175 inttestLogMsg05()176 { 177 inti = 0;175 psS32 testLogMsg05() 176 { 177 psS32 i = 0; 178 178 FILE* file; 179 179 char line[256];
Note:
See TracChangeset
for help on using the changeset viewer.
