Changeset 366


Ignore:
Timestamp:
Feb 5, 2010, 8:58:52 PM (16 years ago)
Author:
RBRi
Message:

format updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hlpmgr/log.c

    r26 r366  
    11#include <stdio.h>
    2 #include <stdarg.h> 
     2#include <stdarg.h>
    33#include <errno.h>
    44#include <string.h>
     
    4444      /* defined as blank? */
    4545      return;
    46  
     46
    4747    /* allocate space for full path, plus slash, plus terminator */
    4848    g_LogFilePath = malloc( strlen( LogDir ) + strlen( LOG_FILENAME ) + 2 );
     
    5252
    5353   /* copy path */
    54     strcpy( g_LogFilePath, LogDir ); 
     54    strcpy( g_LogFilePath, LogDir );
    5555
    5656    /* add ending slash if needed */
     
    6363
    6464  f = fopen( g_LogFilePath, "a" );
    65   if ( f == NULL ) 
     65  if ( f == NULL )
    6666  {
    6767    DosBeep( 2000, 50 );
     
    6969    return;
    7070  }
    71  
     71
    7272  va_start( ap, format );
    7373  vfprintf( f, format, ap );
     
    8383  char hex[ 4 ];
    8484  int i;
    85  
     85
    8686  i = 0;
    8787  p = data;
     
    102102    if ( i == 16 )
    103103    {
    104       i = 0;   
     104      i = 0;
    105105      LogEvent( buffer );
    106106    }
Note: See TracChangeset for help on using the changeset viewer.