From 0059ab2e388234a297575e7d1efb3ed17ae351e7 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Sun, 7 Mar 2010 23:12:30 +0100 Subject: [PATCH] Fixed device file name output on ioctl mismatch. --- tool/MasterDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/MasterDevice.cpp b/tool/MasterDevice.cpp index 7ae28404..e6508342 100644 --- a/tool/MasterDevice.cpp +++ b/tool/MasterDevice.cpp @@ -85,7 +85,7 @@ void MasterDevice::open(Permissions perm) 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); }