tool/MasterDevice.cpp
changeset 1835 20748e9d2238
parent 1831 1875b9fea0ba
child 1837 32136215c1fa
equal deleted inserted replaced
1834:67fc217d7341 1835:20748e9d2238
   532 {
   532 {
   533     if (ioctl(fd, EC_IOCTL_SLAVE_SOE_READ, data) < 0) {
   533     if (ioctl(fd, EC_IOCTL_SLAVE_SOE_READ, data) < 0) {
   534         if (errno == EIO && data->error_code) {
   534         if (errno == EIO && data->error_code) {
   535             throw MasterDeviceSoeException(data->error_code);
   535             throw MasterDeviceSoeException(data->error_code);
   536         } else {
   536         } else {
   537 			stringstream err;
   537             stringstream err;
   538 			err << "Failed to read IDN: " << strerror(errno);
   538             err << "Failed to read IDN: " << strerror(errno);
   539 			throw MasterDeviceException(err);
   539             throw MasterDeviceException(err);
   540 		}
   540         }
   541     }
   541     }
   542 }
   542 }
   543 
   543 
   544 /*****************************************************************************/
   544 /*****************************************************************************/