From: Frank Mori Hess Date: Wed, 1 Jan 2003 23:22:08 +0000 (+0000) Subject: better error message when reading calibration voltages from eeprom X-Git-Tag: r0_7_21~268 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32f85d18a92bb4274694172d7fdedcf6d947cffe;p=comedilib.git better error message when reading calibration voltages from eeprom --- diff --git a/comedi_calibrate/cb.c b/comedi_calibrate/cb.c index cbfafba..5cc5991 100644 --- a/comedi_calibrate/cb.c +++ b/comedi_calibrate/cb.c @@ -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; }