Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / resource / csdk / stack / test / linux / ocserver.c
index 239f8a1..c587a0b 100644 (file)
@@ -48,9 +48,9 @@ void handleSigInt(int signum) {
 }
 
 int main() {
-    OC_LOG_V(INFO, TAG, "Starting ocserver on address %s:%d",addr,port);
+    OIC_LOG_V(INFO, TAG, "Starting ocserver on address %s:%d",addr,port);
     if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK) {
-        OC_LOG(ERROR, TAG, "OCStack init error");
+        OIC_LOG(ERROR, TAG, "OCStack init error");
         return 0;
     }
 
@@ -59,26 +59,26 @@ int main() {
      */
     if(createLightResource() != OC_STACK_OK)
     {
-        OC_LOG(ERROR, TAG, "OCStack cannot create resource...");
+        OIC_LOG(ERROR, TAG, "OCStack cannot create resource...");
     }
 
     // Break from loop with Ctrl-C
-    OC_LOG(INFO, TAG, "Entering ocserver main loop...");
+    OIC_LOG(INFO, TAG, "Entering ocserver main loop...");
     signal(SIGINT, handleSigInt);
     while (!gQuitFlag) {
 
         if (OCProcess() != OC_STACK_OK) {
-            OC_LOG(ERROR, TAG, "OCStack process error");
+            OIC_LOG(ERROR, TAG, "OCStack process error");
             return 0;
         }
 
         sleep(1);
     }
 
-    OC_LOG(INFO, TAG, "Exiting ocserver main loop...");
+    OIC_LOG(INFO, TAG, "Exiting ocserver main loop...");
 
     if (OCStop() != OC_STACK_OK) {
-        OC_LOG(ERROR, TAG, "OCStack process error");
+        OIC_LOG(ERROR, TAG, "OCStack process error");
     }
 
     return 0;