Ignore:
Timestamp:
Feb 20, 2017 12:57:15 AM (3 years ago)
Author:
ming
Message:

Re #1994 (misc): Make the log's sender and thread width a compile-time configurable setting.

Thanks to Richard Mudgett for the suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/log.c

    r4761 r5554  
    381381    } 
    382382    if (log_decor & PJ_LOG_HAS_SENDER) { 
    383         enum { SENDER_WIDTH = 14 }; 
     383        enum { SENDER_WIDTH = PJ_LOG_SENDER_WIDTH }; 
    384384        pj_size_t sender_len = strlen(sender); 
    385385        if (pre!=log_buffer) *pre++ = ' '; 
     
    396396    } 
    397397    if (log_decor & PJ_LOG_HAS_THREAD_ID) { 
    398         enum { THREAD_WIDTH = 12 }; 
     398        enum { THREAD_WIDTH = PJ_LOG_THREAD_WIDTH }; 
    399399        const char *thread_name = pj_thread_get_name(pj_thread_this()); 
    400400        pj_size_t thread_len = strlen(thread_name); 
Note: See TracChangeset for help on using the changeset viewer.