better error message when reading calibration voltages from eeprom
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Jan 2003 23:22:08 +0000 (23:22 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Jan 2003 23:22:08 +0000 (23:22 +0000)
comedi_calibrate/cb.c

index cbfafbac57b22c6d5123e6fb7b487fa502054d93..5cc599132e51aed246b32d678888b6efe68d1c11 100644 (file)
@@ -1004,7 +1004,7 @@ int actual_source_voltage( comedi_t *dev, unsigned int subdevice, unsigned int e
                *voltage = eeprom8_to_source( byte );
        }else
        {
-               perror( "actual_source_voltage(), maxdata invalid" );
+               fprintf( stderr, "actual_source_voltage(), maxdata = 0x%x invalid", max_data );
                return -1;
        }