aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-02-20 18:52:41 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-03-27 18:14:05 -0400
commit73f6a8ac2920a35a9acd4ca7b95062d1aef361b8 (patch)
tree5fd125d83e6c10a807613d6869522c8500448fe7
parentda2ea6bc6079b16ffb42957128ce784cc2230dac (diff)
downloadlibtraceevent-73f6a8ac2920a35a9acd4ca7b95062d1aef361b8.tar.gz
libtraceevent: Fix some missing commas in big endian blocks
The lack of a trailing comma makes the array definition invalid, since elements must be comma delimited in the initialiser. So, add one in the big endian case too. Link: https://lore.kernel.org/linux-trace-devel/20230220175241.15424-1-alice@ayaya.dev Fixes: 58cbc1b2a84e9 ("libtraceevent: Add unit test framework for library commands") Signed-off-by: psykose <alice@ayaya.dev> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--utest/traceevent-utest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utest/traceevent-utest.c b/utest/traceevent-utest.c
index ebd5eb9..041843e 100644
--- a/utest/traceevent-utest.c
+++ b/utest/traceevent-utest.c
@@ -45,7 +45,7 @@ static char dyn_str_data[] = {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
/* common type */ 1, 0x00,
#else
- /* common type */ 0x00, 1
+ /* common type */ 0x00, 1,
#endif
/* common flags */ 0x00,
/* common_preempt_count */ 0x00,
@@ -82,7 +82,7 @@ static char dyn_str_old_data[] = {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
/* common type */ 2, 0x00,
#else
- /* common type */ 0x00, 2
+ /* common type */ 0x00, 2,
#endif
/* common flags */ 0x00,
/* common_preempt_count */ 0x00,
@@ -166,7 +166,7 @@ static char sizeof_data[] = {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
/* common type */ 23, 0x00,
#else
- /* common type */ 0x00, 23
+ /* common type */ 0x00, 23,
#endif
/* common flags */ 0x00,
/* common_preempt_count */ 0x00,