# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1270641047 -7200
# Node ID b64e3791075d9272166fe395855b4197bc53bf19
# Parent  131f655c03d382ab71ba473d4ba8b5c226773994
Output hex values in ethercat xml.

diff -r 131f655c03d3 -r b64e3791075d TODO
--- a/TODO	Mon Mar 29 18:04:17 2010 +0200
+++ b/TODO	Wed Apr 07 13:50:47 2010 +0200
@@ -31,7 +31,6 @@
     - Implement ranges for slaves and domains.
     - Add -x switch for hex display.
     - Implement CompleteAccess
-    - Output hexadecimal values in xml command.
     - Implement --output-file argument in foe_read.
     - Fix arguments of reg_read.
     - Number layout for reg_read.
diff -r 131f655c03d3 -r b64e3791075d tool/CommandXml.cpp
--- a/tool/CommandXml.cpp	Mon Mar 29 18:04:17 2010 +0200
+++ b/tool/CommandXml.cpp	Wed Apr 07 13:50:47 2010 +0200
@@ -143,9 +143,9 @@
 
         cout
             << in << "        <Sm Enable=\"" << dec << (unsigned int) sync.enable
-            << "\" StartAddress=\"" << sync.physical_start_address
-            << "\" ControlByte=\"" << (unsigned int) sync.control_register
-            << "\" DefaultSize=\"" << sync.default_size
+            << "\" StartAddress=\"#x" << hex << sync.physical_start_address
+            << "\" ControlByte=\"#x" << hex << (unsigned int) sync.control_register
+            << "\" DefaultSize=\"" << dec << sync.default_size
             << "\" />" << endl;
     }