Changeset 47 for trunk

Show
Ignore:
Timestamp:
01/10/05 14:58:13 (19 years ago)
Author:
wagi
Message:

- Debug print output added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freebob/src/avdevicepool.cpp

    r43 r47  
    2828AvDevicePool::AvDevicePool() 
    2929{ 
     30    setDebugLevel( DEBUG_LEVEL_ALL ); 
    3031} 
    3132 
     
    4748{ 
    4849    m_avDevices.push_back( pAvDevice ); 
     50 
     51    debugPrint( DEBUG_LEVEL_INFO, "AvDevice 0x%08x added to device pool.\n", 
     52                pAvDevice ); 
     53    debugPrint( DEBUG_LEVEL_INFO, "Pool size = %d\n", m_avDevices.size() ); 
     54 
    4955    return eFBRC_Success; 
    5056} 
     
    6066    { 
    6167        if ( ( *iter ) == pAvDevice ) { 
     68            debugPrint( DEBUG_LEVEL_INFO, 
     69                        "AvDevice 0x%08x removing from device pool\n", 
     70                        ( *iter ) ); 
    6271            m_avDevices.erase( iter ); 
     72            debugPrint( DEBUG_LEVEL_INFO, 
     73                        "Pool size = %d\n", 
     74                        m_avDevices.size() ); 
    6375            return eFBRC_Success; 
    6476        } 
  • trunk/freebob/src/avdevicepool.h

    r42 r47  
    2222 
    2323#include "freebob.h" 
     24#include "debugmodule.h" 
    2425#include <vector> 
    2526#include <libraw1394/raw1394.h> // octlet_t 
     
    5556    typedef std::vector< AvDevice* > AvDeviceVector; 
    5657    AvDeviceVector m_avDevices; 
     58 
     59    DECLARE_DEBUG_MODULE; 
    5760}; 
    5861