Changeset 339


Ignore:
Timestamp:
03/19/15 00:53:12 (10 years ago)
Author:
Maciej Komosinski
Message:

Use #define FRAMSG_FORMAT in stdouterr.cpp

Location:
cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/framsg.h

    r286 r339  
    99
    1010extern const char* MSG_LEVEL[];
     11#define FRAMSG_FORMAT "[%s] %s.%s: %s"
    1112
    1213void FMprintf(const char *o,const char *m,int w,const char *bl, ...);
  • cpp/frams/errmgr/stdouterr.cpp

    r336 r339  
    1414        if (w < -1) w = -1; else if (w>3) w = 3;
    1515#ifdef SHP
    16         AppLog("[%s] %s.%s: %s\n",MSG_LEVEL[w+1],o,m,bl);
     16        AppLog(FRAMSG_FORMAT "\n",MSG_LEVEL[w+1],o,m,bl);
    1717#else
    1818        if (file)
    19                 file->printf("[%s] %s.%s: %s\n", MSG_LEVEL[w + 1], o, m, bl);
     19                file->printf(FRAMSG_FORMAT "\n", MSG_LEVEL[w + 1], o, m, bl);
    2020        else
    21                 printf("[%s] %s.%s: %s\n", MSG_LEVEL[w + 1], o, m, bl);
     21                printf(FRAMSG_FORMAT "\n", MSG_LEVEL[w + 1], o, m, bl);
    2222#endif
    2323}
Note: See TracChangeset for help on using the changeset viewer.