Show
Ignore:
Timestamp:
08/24/07 08:09:49 (15 years ago)
Author:
ppalmers
Message:

- Sort the FFADODevice vector on GUID before assigning device id's

This results in the same device id for identical device setups,
independent of the way they are connected or the node numbers they
have been assigned.

- Sanitized debug message reporting a bit
- Cosmetic changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/genericavc/avc_avdevice.cpp

    r548 r560  
    4848namespace GenericAVC { 
    4949 
    50 IMPL_DEBUG_MODULE( AvDevice, AvDevice, DEBUG_LEVEL_VERBOSE ); 
     50IMPL_DEBUG_MODULE( AvDevice, AvDevice, DEBUG_LEVEL_NORMAL ); 
    5151 
    5252// to define the supported devices 
     
    138138AvDevice::setVerboseLevel(int l) 
    139139{ 
     140    debugOutput( DEBUG_LEVEL_VERBOSE, "Setting verbose level to %d...\n", l ); 
     141 
    140142    m_pPlugManager->setVerboseLevel(l); 
    141143 
     
    251253AvDevice::showDevice() 
    252254{ 
    253     debugOutput(DEBUG_LEVEL_VERBOSE, 
    254         "%s %s at node %d\n", m_model->vendor_name, m_model->model_name, 
    255         m_nodeId); 
    256  
    257     m_pPlugManager->showPlugs(); 
     255    FFADODevice::showDevice(); 
     256     
     257    debugOutput(DEBUG_LEVEL_NORMAL, 
     258        "%s %s\n", m_model->vendor_name, m_model->model_name); 
     259 
     260    AVC::Unit::show(); 
    258261    flushDebugOutput(); 
    259262}