Fixed device file name output on ioctl mismatch.
authorFlorian Pose <fp@igh-essen.com>
Sun, 07 Mar 2010 23:12:30 +0100
changeset 1850 fa112b8a371b
parent 1849 0a660edc7180
child 1851 a56bd34e20a1
Fixed device file name output on ioctl mismatch.
tool/MasterDevice.cpp
--- 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);
         }