Changeset 366
- Timestamp:
- Feb 5, 2010, 8:58:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hlpmgr/log.c
r26 r366 1 1 #include <stdio.h> 2 #include <stdarg.h> 2 #include <stdarg.h> 3 3 #include <errno.h> 4 4 #include <string.h> … … 44 44 /* defined as blank? */ 45 45 return; 46 46 47 47 /* allocate space for full path, plus slash, plus terminator */ 48 48 g_LogFilePath = malloc( strlen( LogDir ) + strlen( LOG_FILENAME ) + 2 ); … … 52 52 53 53 /* copy path */ 54 strcpy( g_LogFilePath, LogDir ); 54 strcpy( g_LogFilePath, LogDir ); 55 55 56 56 /* add ending slash if needed */ … … 63 63 64 64 f = fopen( g_LogFilePath, "a" ); 65 if ( f == NULL ) 65 if ( f == NULL ) 66 66 { 67 67 DosBeep( 2000, 50 ); … … 69 69 return; 70 70 } 71 71 72 72 va_start( ap, format ); 73 73 vfprintf( f, format, ap ); … … 83 83 char hex[ 4 ]; 84 84 int i; 85 85 86 86 i = 0; 87 87 p = data; … … 102 102 if ( i == 16 ) 103 103 { 104 i = 0; 104 i = 0; 105 105 LogEvent( buffer ); 106 106 }
Note:
See TracChangeset
for help on using the changeset viewer.