Changeset 2191

Show
Ignore:
Timestamp:
07/31/12 05:08:41 (12 years ago)
Author:
jwoithe
Message:

The error code associated with a failure of raw1394_read_cycle_timer() is in errno, not the return value. Therefore base the error report on errno instead.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/ieee1394service.cpp

    r2186 r2191  
    545545                  Util::SystemTimeSource::getSource()); 
    546546        if(err) { 
    547             debugWarning("raw1394_read_cycle_timer_and_clock: %s\n", strerror(err)); 
     547            debugWarning("raw1394_read_cycle_timer_and_clock error: %s\n", strerror(errno)); 
    548548            return false; 
    549549        } 
     
    554554        err = raw1394_read_cycle_timer(m_util_handle, cycle_timer, local_time); 
    555555        if(err) { 
    556             debugWarning("raw1394_read_cycle_timer: %s\n", strerror(err)); 
     556            debugWarning("raw1394_read_cycle_timer error: %s\n", strerror(errno)); 
    557557            return false; 
    558558        }