Fix the invalid log print code.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 30 May 2013 13:16:24 +0000 (22:16 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 30 May 2013 13:16:24 +0000 (22:16 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] N/A
[problem] Crash occured
[cause] print an integer as string type.
[solution] Fix it
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I20c6fdc2b56841acb3bf32b5eecac804853474b6

packaging/libcom-core.spec
src/com-core_packet.c

index b25648e..b5d0688 100644 (file)
@@ -1,6 +1,6 @@
 Name: libcom-core
 Summary: Library for the light-weight IPC 
-Version: 0.3.14
+Version: 0.3.15
 Release: 1
 Group: HomeTF/Framework
 License: Apache License
index 383f131..d6189df 100644 (file)
@@ -494,7 +494,7 @@ EAPI struct packet *com_core_packet_oneshot_send(const char *addr, struct packet
        offset = 0;
        ret = com_core_recv(fd, (char *)ptr, packet_header_size(), &pid, timeout);
        if (ret <= 0) {
-               DbgPrint("Recv returns %s\n", ret);
+               DbgPrint("Recv returns %d\n", ret);
                free(ptr);
                goto out;
        } else {
@@ -531,7 +531,7 @@ EAPI struct packet *com_core_packet_oneshot_send(const char *addr, struct packet
 
        ret = com_core_recv(fd, (char *)ptr, size, &pid, timeout);
        if (ret <= 0) {
-               DbgPrint("Recv returns %s\n", ret);
+               DbgPrint("Recv returns %d\n", ret);
                free(ptr);
                packet_destroy(result);
                result = NULL;