src/lib/message.c
void
p_msg(const char *file, int line, int level, const char *fmt,...)
{
    char      buf[5000];
    int       len = 0; /* space used in buf */
    va_list   arg_ptr;

    if (dbg_timestamp) {
       utime_t mtime = time(NULL);
       bstrftimes(buf+len, sizeof(buf)-len, mtime);
       len = strlen(buf);
       buf[len++] = ' ';
    }

#ifdef FULL_LOCATION
    if (level >= 0) {
       len += bsnprintf(buf+len, sizeof(buf)-len, "%s: %s:%d-%u ",
             my_name, get_basename(file), line, get_jobid_from_tsd());
    }
#endif

    va_start(arg_ptr, fmt);
    bvsnprintf(buf+len, sizeof(buf)-len, (char *)fmt, arg_ptr);
    va_end(arg_ptr);

    pt_out(buf);
}
/*********************************************************************
 *
 *  This subroutine prints a message regardless of the debug level
 *
 *  If the level is negative, the details of file and line number
 *  are not printed.
 */
This subroutine prints a message regardless of the debug level
If the level is negative, the details of file and line number
are not printed.
This subroutine prints a message regardless of the debug level If the level is negative the details of file and line number are not printed .
void
p_msg(const char *file, int line, int level, const char *fmt,...)
{
    char      buf[5000];
    int       len = 0; 
    va_list   arg_ptr;
    if (dbg_timestamp) {
       utime_t mtime = time(NULL);
       bstrftimes(buf+len, sizeof(buf)-len, mtime);
       len = strlen(buf);
       buf[len++] = ' ';
    }
#ifdef FULL_LOCATION
    if (level >= 0) {
       len += bsnprintf(buf+len, sizeof(buf)-len, "%s: %s:%d-%u ",
             my_name, get_basename(file), line, get_jobid_from_tsd());
    }
#endif
    va_start(arg_ptr, fmt);
    bvsnprintf(buf+len, sizeof(buf)-len, (char *)fmt, arg_ptr);
    va_end(arg_ptr);
    pt_out(buf);
}
void p_msg ( const char * file , int line , int level , const char * fmt , ... ) { char buf [ 5000 ] ; int len = 0 ; va_list arg_ptr ; if ( dbg_timestamp ) { utime_t mtime = time ( NULL ) ; bstrftimes ( buf + len , sizeof ( buf ) - len , mtime ) ; len = strlen ( buf ) ; buf [ len ++ ] = ' ' ; } #ifdef FULL_LOCATION if ( level >= 0 ) { len += bsnprintf ( buf + len , sizeof ( buf ) - len , " " , my_name , get_basename ( file ) , line , get_jobid_from_tsd ( ) ) ; } #endif va_start ( arg_ptr , fmt ) ; bvsnprintf ( buf + len , sizeof ( buf ) - len , ( char * ) fmt , arg_ptr ) ; va_end ( arg_ptr ) ; pt_out ( buf ) ; }
This subroutine prints a message regardless of the debug level
  If the level is negative, the details of file and line number
  are not printed.
This subroutine prints a message regardless of the debug level If the level is negative the details of file and line number are not printed .
/* space used in buf */