if (!uri)
{
- NS_LOG(NS_ERROR, "Resource URI cannot be NULL");
+ NS_LOG(ERROR, "Resource URI cannot be NULL");
return NS_ERROR;
}
NS_ROOT_URI, NSEntityHandlerNotificationCb, NULL,
resourceProperties) != OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to Create Notification Resource");
+ NS_LOG(ERROR, "Fail to Create Notification Resource");
return NS_ERROR;
}
if (OCBindResourceInterfaceToResource(NotificationResource.handle, NS_INTERFACE_READ)
!= OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to bind Notification Resource Type");
+ NS_LOG(ERROR, "Fail to bind Notification Resource Type");
return NS_ERROR;
}
}
NS_INTERFACE_BASELINE, NS_COLLECTION_MESSAGE_URI, NSEntityHandlerMessageCb, NULL,
resourceProperties) != OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to Create Notification Message Resource");
+ NS_LOG(ERROR, "Fail to Create Notification Message Resource");
return NS_ERROR;
}
if (OCBindResourceInterfaceToResource(NotificationMessageResource.handle, NS_INTERFACE_READ)
!= OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to bind Notification Message Resource Type");
+ NS_LOG(ERROR, "Fail to bind Notification Message Resource Type");
return NS_ERROR;
}
}
NS_INTERFACE_BASELINE, NS_COLLECTION_SYNC_URI, NSEntityHandlerSyncCb, NULL,
resourceProperties) != OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to Create Notification Sync Resource");
+ NS_LOG(ERROR, "Fail to Create Notification Sync Resource");
return NS_ERROR;
}
NS_INTERFACE_READWRITE)
!= OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to bind Notification Sync Resource Type");
+ NS_LOG(ERROR, "Fail to bind Notification Sync Resource Type");
return NS_ERROR;
}
}
NS_INTERFACE_BASELINE, NS_COLLECTION_TOPIC_URI, NSEntityHandlerTopicCb, NULL,
resourceProperties) != OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to Create Notification Sync Resource");
+ NS_LOG(ERROR, "Fail to Create Notification Sync Resource");
return NS_ERROR;
}
NS_INTERFACE_READWRITE)
!= OC_STACK_OK)
{
- NS_LOG(NS_ERROR, "Fail to bind Notification Topic Resource Type");
+ NS_LOG(ERROR, "Fail to bind Notification Topic Resource Type");
return NS_ERROR;
}
}