projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
stack
/
test
/
linux
/
ocserver.c
diff --git
a/resource/csdk/stack/test/linux/ocserver.c
b/resource/csdk/stack/test/linux/ocserver.c
index
239f8a1
..
c587a0b
100644
(file)
--- a/
resource/csdk/stack/test/linux/ocserver.c
+++ b/
resource/csdk/stack/test/linux/ocserver.c
@@
-48,9
+48,9
@@
void handleSigInt(int signum) {
}
int main() {
}
int main() {
- OC_LOG_V(INFO, TAG, "Starting ocserver on address %s:%d",addr,port);
+ O
I
C_LOG_V(INFO, TAG, "Starting ocserver on address %s:%d",addr,port);
if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK) {
if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK) {
- OC_LOG(ERROR, TAG, "OCStack init error");
+ O
I
C_LOG(ERROR, TAG, "OCStack init error");
return 0;
}
return 0;
}
@@
-59,26
+59,26
@@
int main() {
*/
if(createLightResource() != OC_STACK_OK)
{
*/
if(createLightResource() != OC_STACK_OK)
{
- OC_LOG(ERROR, TAG, "OCStack cannot create resource...");
+ O
I
C_LOG(ERROR, TAG, "OCStack cannot create resource...");
}
// Break from loop with Ctrl-C
}
// Break from loop with Ctrl-C
- OC_LOG(INFO, TAG, "Entering ocserver main loop...");
+ O
I
C_LOG(INFO, TAG, "Entering ocserver main loop...");
signal(SIGINT, handleSigInt);
while (!gQuitFlag) {
if (OCProcess() != OC_STACK_OK) {
signal(SIGINT, handleSigInt);
while (!gQuitFlag) {
if (OCProcess() != OC_STACK_OK) {
- OC_LOG(ERROR, TAG, "OCStack process error");
+ O
I
C_LOG(ERROR, TAG, "OCStack process error");
return 0;
}
sleep(1);
}
return 0;
}
sleep(1);
}
- OC_LOG(INFO, TAG, "Exiting ocserver main loop...");
+ O
I
C_LOG(INFO, TAG, "Exiting ocserver main loop...");
if (OCStop() != OC_STACK_OK) {
if (OCStop() != OC_STACK_OK) {
- OC_LOG(ERROR, TAG, "OCStack process error");
+ O
I
C_LOG(ERROR, TAG, "OCStack process error");
}
return 0;
}
return 0;