From 6e4a2a262091723f11931953266d7ef07d9c6227 Mon Sep 17 00:00:00 2001 From: Florian Pose <fp@igh-essen.com> 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); } -- GitLab