Changeset 969

Show
Ignore:
Timestamp:
03/23/08 03:32:19 (14 years ago)
Author:
ppalmers
Message:

fixes #85

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/bebob/bebob_dl_mgr.cpp

    r864 r969  
    433433 
    434434        if ( !writeRequest( ccBlock ) ) { 
    435             debugError( "downloadObject: (block) write request failed" ); 
     435            debugError( "downloadObject: (block) write request failed\n" ); 
    436436            result = false; 
    437437            break; 
  • trunk/libffado/src/bounce/bounce_avdevice.cpp

    r864 r969  
    450450        reg_isoch=0xFFFFFFFFUL; 
    451451        if(!writeReg(BOUNCE_REGISTER_TX_ISOCHANNEL, reg_isoch)) { 
    452             debugError("Could not write ISO_CHANNEL register" ); 
     452            debugError("Could not write ISO_CHANNEL register\n" ); 
    453453            return false; 
    454454        } 
  • trunk/libffado/src/dice/dice_avdevice.cpp

    r864 r969  
    650650 
    651651        if(!readTxReg(i, DICE_REGISTER_TX_NB_AUDIO_BASE, &nb_audio)) { 
    652             debugError("Could not read DICE_REGISTER_TX_NB_AUDIO_BASE register for ATX%u",i); 
     652            debugError("Could not read DICE_REGISTER_TX_NB_AUDIO_BASE register for ATX%u\n",i); 
    653653            continue; 
    654654        } 
    655655        if(!readTxReg(i, DICE_REGISTER_TX_MIDI_BASE, &nb_midi)) { 
    656             debugError("Could not read DICE_REGISTER_TX_MIDI_BASE register for ATX%u",i); 
     656            debugError("Could not read DICE_REGISTER_TX_MIDI_BASE register for ATX%u\n",i); 
    657657            continue; 
    658658        } 
     
    735735 
    736736        if(!readTxReg(i, DICE_REGISTER_RX_NB_AUDIO_BASE, &nb_audio)) { 
    737             debugError("Could not read DICE_REGISTER_RX_NB_AUDIO_BASE register for ARX%u",i); 
     737            debugError("Could not read DICE_REGISTER_RX_NB_AUDIO_BASE register for ARX%u\n",i); 
    738738            continue; 
    739739        } 
    740740        if(!readTxReg(i, DICE_REGISTER_RX_MIDI_BASE, &nb_midi)) { 
    741             debugError("Could not read DICE_REGISTER_RX_MIDI_BASE register for ARX%u",i); 
     741            debugError("Could not read DICE_REGISTER_RX_MIDI_BASE register for ARX%u\n",i); 
    742742            continue; 
    743743        } 
  • trunk/libffado/src/fireworks/efc/efc_avc_cmd.cpp

    r864 r969  
    4949{ 
    5050    if (m_cmd==NULL) { 
    51         debugError("no child EFC command"); 
     51        debugError("no child EFC command\n"); 
    5252        return false; 
    5353    } 
     
    7171{ 
    7272    if (m_cmd==NULL) { 
    73         debugError("no child EFC command"); 
     73        debugError("no child EFC command\n"); 
    7474        return false; 
    7575    } 
  • trunk/libffado/src/fireworks/efc/efc_cmd.cpp

    r864 r969  
    155155    // check whether the category and command of the response are valid 
    156156    if (m_header.category != m_category_id) { 
    157         debugError("Invalid category response: %d != %d", m_header.category, m_category_id); 
     157        debugError("Invalid category response: %d != %d\n", m_header.category, m_category_id); 
    158158        return false; 
    159159    } 
    160160    if (m_header.command != m_command_id) { 
    161         debugError("Invalid command response: %d != %d", m_header.command, m_command_id); 
     161        debugError("Invalid command response: %d != %d\n", m_header.command, m_command_id); 
    162162        return false; 
    163163    } 
  • trunk/libffado/src/fireworks/fireworks_device.cpp

    r864 r969  
    388388//     EfcPhyReconnectCmd rccmd; 
    389389//     if(!doEfcOverAVC(rccmd)) { 
    390 //         debugError("Phy reconnect failed"); 
     390//         debugError("Phy reconnect failed\n"); 
    391391//     } else { 
    392392//         // sleep for one second such that the phy can get reconnected 
  • trunk/libffado/src/libavc/descriptors/avc_descriptor_cmd.cpp

    r864 r969  
    6464     
    6565    if(m_specifier==NULL) { 
    66         debugError("m_specifier==NULL"); 
     66        debugError("m_specifier==NULL\n"); 
    6767        return false; 
    6868    } 
     
    9393     
    9494    if(m_specifier==NULL) { 
    95         debugError("m_specifier==NULL"); 
     95        debugError("m_specifier==NULL\n"); 
    9696        return false; 
    9797    } 
     
    163163     
    164164    if(m_specifier==NULL) { 
    165         debugError("m_specifier==NULL"); 
     165        debugError("m_specifier==NULL\n"); 
    166166        return false; 
    167167    } 
     
    190190 
    191191    if(m_specifier==NULL) { 
    192         debugError("m_specifier==NULL"); 
     192        debugError("m_specifier==NULL\n"); 
    193193        return false; 
    194194    } 
     
    209209                m_data = new byte_t[m_data_length]; 
    210210                if(m_data == NULL) { 
    211                     debugError("Could not allocate memory for payload data"); 
     211                    debugError("Could not allocate memory for payload data\n"); 
    212212                    return false; 
    213213                } 
     
    216216                    delete[] m_data; 
    217217                    m_data = NULL; 
    218                     debugError("Could not read payload data"); 
     218                    debugError("Could not read payload data\n"); 
    219219                    return false; 
    220220                } 
  • trunk/libffado/src/libavc/general/avc_unit.cpp

    r864 r969  
    155155 
    156156    if (m_pPlugManager == NULL) { 
    157         debugError("Could not create new plugmanager"); 
     157        debugError("Could not create new plugmanager\n"); 
    158158        return false; 
    159159    } 
  • trunk/libffado/src/libutil/PosixThread.cpp

    r966 r969  
    6565 
    6666    if ((err = pthread_setcanceltype(obj->fCancellation, NULL)) != 0) { 
    67         debugError("pthread_setcanceltype err = %s", strerror(err)); 
     67        debugError("pthread_setcanceltype err = %s\n", strerror(err)); 
    6868    } 
    6969 
    7070    // Call Init method 
    7171    if (!runnable->Init()) { 
    72         debugError("Thread init fails: thread quits"); 
     72        debugError("Thread init fails: thread quits\n"); 
    7373        return 0; 
    7474    } 
     
    104104 
    105105        if ((res = pthread_attr_setinheritsched(&attributes, PTHREAD_EXPLICIT_SCHED))) { 
    106             debugError("Cannot request explicit scheduling for RT thread  %d %s", res, strerror(res)); 
     106            debugError("Cannot request explicit scheduling for RT thread  %d %s\n", res, strerror(res)); 
    107107            return -1; 
    108108        } 
    109109        if ((res = pthread_attr_setdetachstate(&attributes, PTHREAD_CREATE_JOINABLE))) { 
    110             debugError("Cannot request joinable thread creation for RT thread  %d %s", res, strerror(res)); 
     110            debugError("Cannot request joinable thread creation for RT thread  %d %s\n", res, strerror(res)); 
    111111            return -1; 
    112112        } 
    113113        if ((res = pthread_attr_setscope(&attributes, PTHREAD_SCOPE_SYSTEM))) { 
    114             debugError("Cannot set scheduling scope for RT thread %d %s", res, strerror(res)); 
     114            debugError("Cannot set scheduling scope for RT thread %d %s\n", res, strerror(res)); 
    115115            return -1; 
    116116        } 
     
    119119 
    120120        //if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_RR))) { 
    121             debugError("Cannot set FIFO scheduling class for RT thread  %d %s", res, strerror(res)); 
     121            debugError("Cannot set FIFO scheduling class for RT thread  %d %s\n", res, strerror(res)); 
    122122            return -1; 
    123123        } 
     
    127127 
    128128        if ((res = pthread_attr_setschedparam(&attributes, &rt_param))) { 
    129             debugError("Cannot set scheduling priority for RT thread %d %s", res, strerror(res)); 
     129            debugError("Cannot set scheduling priority for RT thread %d %s\n", res, strerror(res)); 
    130130            return -1; 
    131131        } 
    132132 
    133133        if ((res = pthread_create(&fThread, &attributes, ThreadHandler, this))) { 
    134             debugError("Cannot set create thread %d %s", res, strerror(res)); 
     134            debugError("Cannot set create thread %d %s\n", res, strerror(res)); 
    135135            return -1; 
    136136        } 
     
    141141 
    142142        if ((res = pthread_create(&fThread, 0, ThreadHandler, this))) { 
    143             debugError("Cannot set create thread %d %s", res, strerror(res)); 
     143            debugError("Cannot set create thread %d %s\n", res, strerror(res)); 
    144144            return -1; 
    145145        } 
  • trunk/libffado/tests/test-mixer.cpp

    r864 r969  
    245245     
    246246    if (errno) { 
    247         debugError("argument parsing failed: %s", strerror(errno)); 
     247        debugError("argument parsing failed: %s\n", strerror(errno)); 
    248248        return -1; 
    249249    }