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/include/pj/config.h

    r5552 r5554  
    470470#ifndef PJ_LOG_INDENT_CHAR 
    471471#   define PJ_LOG_INDENT_CHAR       '.' 
     472#endif 
     473 
     474/** 
     475 * Log sender width. 
     476 * 
     477 * Default: 22 (for 64-bit machines), 14 otherwise 
     478 */ 
     479#ifndef PJ_LOG_SENDER_WIDTH 
     480#   if PJ_HAS_STDINT_H 
     481#       include <stdint.h> 
     482#       if (UINTPTR_MAX == 0xffffffffffffffff) 
     483#           define PJ_LOG_SENDER_WIDTH  22 
     484#       else 
     485#           define PJ_LOG_SENDER_WIDTH  14 
     486#       endif 
     487#   else 
     488#       define PJ_LOG_SENDER_WIDTH  14 
     489#   endif 
     490#endif 
     491 
     492/** 
     493 * Log thread name width. 
     494 * 
     495 * Default: 12 
     496 */ 
     497#ifndef PJ_LOG_THREAD_WIDTH 
     498#   define PJ_LOG_THREAD_WIDTH      12 
    472499#endif 
    473500 
Note: See TracChangeset for help on using the changeset viewer.