From 79cf430e2882b704a046ba736ff425e99d3361a1 Mon Sep 17 00:00:00 2001 From: KIM JungYong Date: Fri, 24 Feb 2017 14:10:04 +0900 Subject: [PATCH] [IOT-1850] Fix logging on Notification service. Unsafe location of log was moved to safety location. Bugs: https://jira.iotivity.org/browse/IOT-1850 Change-Id: I5ba9537f10546e1eff6968ec2dcdd95ec04abf34 Signed-off-by: KIM JungYong Reviewed-on: https://gerrit.iotivity.org/gerrit/17493 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi Tested-by: Uze Choi --- service/notification/src/consumer/NSConsumerDiscovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/notification/src/consumer/NSConsumerDiscovery.c b/service/notification/src/consumer/NSConsumerDiscovery.c index 4d4f072..7124bff 100644 --- a/service/notification/src/consumer/NSConsumerDiscovery.c +++ b/service/notification/src/consumer/NSConsumerDiscovery.c @@ -112,9 +112,9 @@ OCStackApplicationResult NSProviderDiscoverListener( while (discoveryPayload) { OCResourcePayload * resource = discoveryPayload->resources; - NS_LOG_V(DEBUG, "Discovered resource uri : %s", resource->uri); while (resource) { + NS_LOG_V(DEBUG, "Discovered resource uri : %s", resource->uri); NS_VERIFY_NOT_NULL(resource->uri, OC_STACK_KEEP_TRANSACTION); if (strstr(resource->uri, NS_RESOURCE_URI)) { -- 2.7.4