[IMPROVE] add message len to debug info
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Thu, 4 Jul 2013 16:10:29 +0000 (20:10 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Thu, 4 Jul 2013 16:10:29 +0000 (20:10 +0400)
parser/swap_msg_parser.c

index 11bda3e..bb44cd4 100644 (file)
@@ -51,31 +51,31 @@ static int msg_handler(void __user *msg)
        msg_id = bmf.msg_id;
        switch (msg_id) {
        case MSG_KEEP_ALIVE:
-               print_parse_debug("MSG_KEEP_ALIVE\n");
+               print_parse_debug("MSG_KEEP_ALIVE. size=%d\n", size);
                ret = msg_keep_alive(&mb);
                break;
        case MSG_START:
-               print_parse_debug("MSG_START\n");
+               print_parse_debug("MSG_START. size=%d\n", size);
                ret = msg_start(&mb);
                break;
        case MSG_STOP:
-               print_parse_debug("MSG_STOP\n");
+               print_parse_debug("MSG_STOP. size=%d\n", size);
                ret = msg_stop(&mb);
                break;
        case MSG_CONFIG:
-               print_parse_debug("MSG_CONFIG\n");
+               print_parse_debug("MSG_CONFIG. size=%d\n", size);
                ret = msg_config(&mb);
                break;
        case MSG_SWAP_INST_ADD:
-               print_parse_debug("MSG_SWAP_INST_ADD\n");
+               print_parse_debug("MSG_SWAP_INST_ADD. size=%d\n", size);
                ret = msg_swap_inst_add(&mb);
                break;
        case MSG_SWAP_INST_REMOVE:
-               print_parse_debug("MSG_SWAP_INST_REMOVE\n");
+               print_parse_debug("MSG_SWAP_INST_REMOVE. size=%d\n", size);
                ret = msg_swap_inst_remove(&mb);
                break;
        default:
-               print_err("incorrect message ID [%u]\n", msg_id);
+               print_err("incorrect message ID [%u]. size=%d\n", msg_id, size);
                ret = -EINVAL;
                break;
        }