[Title] remove strerror call for Windows version
authordongkyun.yun <dk77.yun@samsung.com>
Sun, 4 Dec 2011 14:01:41 +0000 (23:01 +0900)
committerdongkyun.yun <dk77.yun@samsung.com>
Sun, 4 Dec 2011 14:01:41 +0000 (23:01 +0900)
[Type]      // Commit Type: Feature / Bugfix / Enhancement
[Module]    // Module Name - (Main / Sub)
[Priority]  // Importance : Critical / Major / Minor
[CQ#]       // CQ Issue Number
[Redmine#]  // Redmine Isuue Number
[Problem]   // Problem Description
[Cause]     // Cause Description
[Solution]  // Solution Description
[TestCase]  // Executed the test-target (How to)

tizen/src/sensor_server.c

index c3bbcc4..d712fab 100644 (file)
@@ -98,6 +98,7 @@ void *init_sensor_server(void)
        if((listen_s = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
        {
                ERR("Create listen socket error: ");
+        perror("socket");
                goto cleanup;
        }
 
@@ -110,8 +111,8 @@ void *init_sensor_server(void)
        INFO( "bind port[127.0.0.1:%d/udp] for sensor server in host \n", port);
        if(bind(listen_s, (struct sockaddr *) &servaddr, sizeof(servaddr)) < 0)
        {
-               ERR( "bind fail [%d:%s] \n", errno, strerror(errno));
                ERR("bind error: ");
+        perror("bind");
                goto cleanup;
        }