ctf: clean up pointer parsing in iostructgen
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 4 Dec 2013 20:59:32 +0000 (15:59 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 19 Dec 2013 22:34:20 +0000 (17:34 -0500)
Change-Id: I03217fbb3900a771a53938df1e91d555461bf0c1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20070
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
IP-Clean: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Hudson CI
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/internal/ctf/core/event/metadata/IOStructGen.java

index 5ca358a8a85fadbbe18c3d87b8fc043f8a52cad4..0ae4aaf5e713631408a94eb03d2a2db8922c9c01 100644 (file)
@@ -270,8 +270,7 @@ public class IOStructGen {
             } else if (left.equals("func")) { //$NON-NLS-1$
                 funcName = child.getChild(1).getChild(0).getChild(0).getText().replaceAll(regex, nullString);
             } else if (left.equals("ip")) { //$NON-NLS-1$
-                /* trim the 0x */
-                ip = Long.parseLong(child.getChild(1).getChild(0).getChild(0).getText().substring(2), 16);
+                ip = Long.decode(child.getChild(1).getChild(0).getChild(0).getText());
             } else if (left.equals("file")) { //$NON-NLS-1$
                 fileName = child.getChild(1).getChild(0).getChild(0).getText().replaceAll(regex, nullString);
             } else if (left.equals("line")) { //$NON-NLS-1$
This page took 0.02759 seconds and 5 git commands to generate.