aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron2013-12-04 11:18:26 (EST)
committerMatthew Khouzam2013-12-04 14:11:30 (EST)
commit29960dd70a00cd4f8a113ac58886d859980e5121 (patch)
tree4da395d0cb4d67c7ea207ed9e0df9e300cc3c91c
parent79a3c7694014ca75407a6e28b0d654a80a35e046 (diff)
downloadorg.eclipse.linuxtools-29960dd70a00cd4f8a113ac58886d859980e5121.zip
org.eclipse.linuxtools-29960dd70a00cd4f8a113ac58886d859980e5121.tar.gz
org.eclipse.linuxtools-29960dd70a00cd4f8a113ac58886d859980e5121.tar.bz2
ctf: fix a misleading comment on string alignment.refs/changes/20/19320/3
Signed-off-by: etienne.bergeron@gmail.com <etienne.bergeron@gmail.com> Change-Id: I4efeaf273c8695a0aa8f72ba57592dd8d0e8b649 Reviewed-on: https://git.eclipse.org/r/19320 Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java
index 6f63b4d..94b74d0 100644
--- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java
+++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java
@@ -71,7 +71,8 @@ public class StringDeclaration implements IDeclaration {
@Override
public long getAlignment() {
- return 8; //FIXME: should be the elementtype.
+ // See ctf 4.2.5: Strings are always aligned on byte size.
+ return 8;
}
// ------------------------------------------------------------------------
// Operations