tool/MasterDevice.cpp
changeset 1850 fa112b8a371b
parent 1837 32136215c1fa
child 1961 48f536aefc18
--- 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);
         }