From: Mathieu Desnoyers Date: Wed, 1 Jun 2011 20:09:45 +0000 (-0400) Subject: Case alignment to uint for metadata print X-Git-Tag: v2.0-pre1~71 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=32257272f4552c34d0d8ada1de550c1d8076f780;p=lttng-modules.git Case alignment to uint for metadata print Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-events.c b/ltt-events.c index a4bc1544..2693dc2c 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -472,7 +472,7 @@ int _ltt_field_statedump(struct ltt_session *session, " integer { size = %u; align = %u; signed = %u; encoding = %s; base = %u;%s } __%s_length;\n", " integer { size = %u; align = %u; signed = %u; encoding = %s; base = %u;%s } %s[ __%s_length ];\n", length_type->u.basic.integer.size, - length_type->u.basic.integer.alignment, + (unsigned int) length_type->u.basic.integer.alignment, length_type->u.basic.integer.signedness, (length_type->u.basic.integer.encoding == lttng_encode_none) ? "none" @@ -487,7 +487,7 @@ int _ltt_field_statedump(struct ltt_session *session, #endif field->name, elem_type->u.basic.integer.size, - elem_type->u.basic.integer.alignment, + (unsigned int) elem_type->u.basic.integer.alignment, elem_type->u.basic.integer.signedness, (elem_type->u.basic.integer.encoding == lttng_encode_none) ? "none"