Fixed device file name output on ioctl mismatch.
--- a/tool/MasterDevice.cpp Sun Mar 07 23:08:07 2010 +0100
+++ b/tool/MasterDevice.cpp Sun Mar 07 23:12:30 2010 +0100
@@ -85,7 +85,7 @@
if (module_data.ioctl_version_magic != EC_IOCTL_VERSION_MAGIC) {
stringstream err;
err << "ioctl() version magic is differing: "
- << deviceName << ": " << module_data.ioctl_version_magic
+ << deviceName.str() << ": " << module_data.ioctl_version_magic
<< ", ethercat tool: " << EC_IOCTL_VERSION_MAGIC;
throw MasterDeviceException(err);
}