system-controller: increase array size to accomodate new message types
authorJanos Kovacs <jankovac503@gmail.com>
Wed, 10 Sep 2014 21:50:48 +0000 (00:50 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:17 +0000 (18:37 +0200)
Change-Id: I9af62f290c3c6aad20943b5797b29e6bae45598b
Signed-off-by: Janos Kovacs <jankovac503@gmail.com>
src/plugins/system-controller/plugin-system-controller.c

index be85ca7..8b88d37 100644 (file)
@@ -344,7 +344,7 @@ static int send_message(client_t *c, mrp_json_t *msg)
 static const char *message_name(int code)
 {
 #define MAX_CLASS   0x08
-#define MAX_TYPE    0x30
+#define MAX_TYPE    0x32
 #define CLASS(code) (((code) & 0xf0000) >> 16)
 #define TYPE(code)  (((code) & 0x0ffff))
     static char *names[MAX_CLASS + 1][MAX_TYPE + 1];