From 29960dd70a00cd4f8a113ac58886d859980e5121 Mon Sep 17 00:00:00 2001 From: Etienne Bergeron Date: Wed, 4 Dec 2013 11:18:26 -0500 Subject: ctf: fix a misleading comment on string alignment. Signed-off-by: etienne.bergeron@gmail.com Change-Id: I4efeaf273c8695a0aa8f72ba57592dd8d0e8b649 Reviewed-on: https://git.eclipse.org/r/19320 Reviewed-by: Matthew Khouzam IP-Clean: Matthew Khouzam Tested-by: Matthew Khouzam --- .../org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 6f63b4d831..94b74d0df7 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 -- cgit v1.2.3