Changeset 100:9aa249473ca1 in finroc_plugins_data_ports


Ignore:
Timestamp:
01.07.2015 13:57:45 (4 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Replaced erroneous use of FINROC_LOG_PRINT with FINROC_LOG_PRINT_STATIC

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • api/tGenericPortImplementation.cpp

    r99 r100  
    8181    if (typeid(port) != typeid(tBoundedPort)) 
    8282    { 
    83       FINROC_LOG_PRINT(ERROR, "Cannot set bounds for port ", rrlib::rtti::tDataType<T>().GetName(), ". It is not a bounded port."); 
     83      FINROC_LOG_PRINT_STATIC(ERROR, "Cannot set bounds for port ", rrlib::rtti::tDataType<T>().GetName(), ". It is not a bounded port."); 
    8484      return; 
    8585    } 
     
    9292  static void SetBounds(core::tAbstractPort& port, const rrlib::rtti::tGenericObject& min, const rrlib::rtti::tGenericObject& max) 
    9393  { 
    94     FINROC_LOG_PRINT(ERROR, "Cannot set bounds for type ", port.GetDataType().GetName()); 
     94    FINROC_LOG_PRINT_STATIC(ERROR, "Cannot set bounds for type ", port.GetDataType().GetName()); 
    9595  } 
    9696}; 
  • api/tPortImplementation.h

    r98 r100  
    113113    if (creation_info.BoundsSet()) 
    114114    { 
    115       FINROC_LOG_PRINT(WARNING, "Bounds are not supported for type '", creation_info.data_type.GetName(), "'. Ignoring."); 
     115      FINROC_LOG_PRINT_STATIC(WARNING, "Bounds are not supported for type '", creation_info.data_type.GetName(), "'. Ignoring."); 
    116116    } 
    117117    return new tPortBase(creation_info); 
     
    347347    if (pci.BoundsSet()) 
    348348    { 
    349       FINROC_LOG_PRINT(WARNING, "Bounds are not supported for type '", pci.data_type.GetName(), "'. Ignoring."); 
     349      FINROC_LOG_PRINT_STATIC(WARNING, "Bounds are not supported for type '", pci.data_type.GetName(), "'. Ignoring."); 
    350350    } 
    351351    return new standard::tStandardPort(pci); 
  • numeric/tNumber.cpp

    r60 r100  
    170170  case cCONST: 
    171171    stream.ReadByte(); 
    172     FINROC_LOG_PRINT(WARNING, "Constants no longer supported. Ignoring."); 
     172    FINROC_LOG_PRINT_STATIC(WARNING, "Constants no longer supported. Ignoring."); 
    173173    break; 
    174174  default: 
     
    199199    break; 
    200200  default: 
    201     FINROC_LOG_PRINT(ERROR, "Memory error: Invalid enum."); 
     201    FINROC_LOG_PRINT_STATIC(ERROR, "Memory error: Invalid enum."); 
    202202    abort(); 
    203203  } 
  • optimized/cheaply_copied_types.cpp

    r96 r100  
    137137  if (!IsCheaplyCopiedType(type)) 
    138138  { 
    139     FINROC_LOG_PRINT(ERROR, "Invalid type registered"); 
     139    FINROC_LOG_PRINT_STATIC(ERROR, "Invalid type registered"); 
    140140    abort(); 
    141141  } 
     
    158158  if (result >= cMAX_CHEAPLY_COPYABLE_TYPES) 
    159159  { 
    160     FINROC_LOG_PRINT(ERROR, "Maximum number of cheaply copyable types exceeded"); 
     160    FINROC_LOG_PRINT_STATIC(ERROR, "Maximum number of cheaply copyable types exceeded"); 
    161161    abort(); 
    162162  } 
  • tUnit.cpp

    r46 r100  
    198198  if (index >= internal::cUNIT_COUNT) 
    199199  { 
    200     FINROC_LOG_PRINT(ERROR, "Invalid unit index in stream: ", index); 
     200    FINROC_LOG_PRINT_STATIC(ERROR, "Invalid unit index in stream: ", index); 
    201201    unit = tUnit(); 
    202202  } 
Note: See TracChangeset for help on using the changeset viewer.