Ignore:
Timestamp:
04/26/15 00:59:09 (9 years ago)
Author:
Maciej Komosinski
Message:

Renamed logging functions to more intuitive and simple names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_stdio.cpp

    r374 r375  
    242242
    243243#ifdef __ANDROID__
    244 #include "hmessage.h"
     244#include "log.h"
    245245#include "nonstd.h"
    246246#include "nonstd_stl.h"
     
    248248{
    249249        string respath=getAppResourcesDir();
    250         //printH("Opening '%s', mode='%s'",path,mode);
    251         //printH("getAppResourcesDir()='%s'",respath.c_str());
     250        //log_printf("Opening '%s', mode='%s'",path,mode);
     251        //log_printf("getAppResourcesDir()='%s'",respath.c_str());
    252252        NvFile *rfile=NULL; //can only read
    253253        FILE *rwfile=NULL;
     
    256256                path+=respath.length(); //strip the prefix, we need a relative path in assets
    257257                if (strstr(mode,"w"))
    258                         printH("Warning: attempt to open a read-only resource '%s' in writable mode '%s'",path,mode);
     258                        log_printf("Warning: attempt to open a read-only resource '%s' in writable mode '%s'",path,mode);
    259259                rfile=NvFOpen(path); //"mode" not supported! can only read
    260                 //printH("Opened RES file as %p",rfile);
     260                //log_printf("Opened RES file as %p",rfile);
    261261                if (rfile==NULL) return NULL;
    262262        } else //a "normal" access (HOME)
    263263        {
    264264                rwfile=fopen(path,mode);
    265                 //printH("Opened HOME file as %p",rwfile);
     265                //log_printf("Opened HOME file as %p",rwfile);
    266266                if (rwfile==NULL) return NULL;
    267267        }
Note: See TracChangeset for help on using the changeset viewer.