summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2015-10-09 14:57:46 +0300
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>2015-10-09 05:06:22 -0700
commita9b70f94a251fc178513f492b2499b6f7dbf866f (patch)
tree6a7fe9ed04e848c469e2bf699ccf2f85e583b1dc
parent490de8ae0d562e1c3a45a91ee8a09bc0800e2298 (diff)
downloadswap-modules-a9b70f94a251fc178513f492b2499b6f7dbf866f.tar.gz
swap-modules-a9b70f94a251fc178513f492b2499b6f7dbf866f.tar.bz2
swap-modules-a9b70f94a251fc178513f492b2499b6f7dbf866f.zip
Change-Id: If26e8fffa85b0b90386e5a5246b6c3e31a851966 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
-rw-r--r--parser/msg_parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser/msg_parser.c b/parser/msg_parser.c
index 42b8b0dc..045da4a8 100644
--- a/parser/msg_parser.c
+++ b/parser/msg_parser.c
@@ -356,7 +356,7 @@ int get_preload_probe(struct msg_buf *mb, struct probe_info *pi)
}
pi->probe_type = SWAP_PRELOAD_PROBE;
- pi->size = sizeof(pi->pl_i) + sizeof(pi->probe_type) + sizeof(pi->size);
+ pi->size = 0;
pi->pl_i.handler = handler;
pi->pl_i.flags = flags;
@@ -384,7 +384,7 @@ void put_preload_probe(struct probe_info *pi)
int get_get_caller_probe(struct msg_buf *mb, struct probe_info *pi)
{
pi->probe_type = SWAP_GET_CALLER;
- pi->size = sizeof(pi->gc_i);
+ pi->size = 0;
return 0;
}
@@ -409,7 +409,7 @@ void put_get_caller_probe(struct probe_info *pi)
int get_get_call_type_probe(struct msg_buf *mb, struct probe_info *pi)
{
pi->probe_type = SWAP_GET_CALL_TYPE;
- pi->size = sizeof(pi->gct_i);
+ pi->size = 0;
return 0;
}
@@ -434,7 +434,7 @@ void put_get_call_type_probe(struct probe_info *pi)
int get_write_msg_probe(struct msg_buf *mb, struct probe_info *pi)
{
pi->probe_type = SWAP_WRITE_MSG;
- pi->size = sizeof(pi->wm_i);
+ pi->size = 0;
return 0;
}