summaryrefslogtreecommitdiff
path: root/app/bin/lprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/lprintf.c')
-rw-r--r--app/bin/lprintf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/bin/lprintf.c b/app/bin/lprintf.c
index 217d904..23cc44a 100644
--- a/app/bin/lprintf.c
+++ b/app/bin/lprintf.c
@@ -56,15 +56,13 @@ static long logLineNumber;
static void LogInit( void )
{
- int inx;
+ int inx=0;
if ( logTable_da.cnt != 0 )
return;
- DYNARR_SET( logTable_t, logTable_da, 11 );
- for ( inx=0; inx<=10; inx++ ) {
- logTable(inx).name = "";
- logTable(inx).level = inx;
- }
+ DYNARR_APPEND( logTable_t, logTable_da,10);
+ logTable(inx).name = "";
+ logTable(inx).level = 0;
}
EXPORT void LogOpen( char * filename )
@@ -118,6 +116,7 @@ EXPORT void LogSet( char * name, int level )
logTable(logTable_da.cnt-1).level = level;
}
+
EXPORT int LogFindIndex( char * name )
{
int inx;