Fix the invalid print code.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 30 May 2013 13:18:03 +0000 (22:18 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 30 May 2013 13:18:03 +0000 (22:18 +0900)
Crash occured while printing the integer value as string type.
This patch fixes it.

Change-Id: I064a4643a1586ab3f2f8a69c62e60324ce9331fa

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

index 1e8f268..a12a6e6 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;