[IOT-2908] Build fail for option WITH_CLOUD. 79/23879/3
authorHarry <h.marappa@samsung.com>
Mon, 27 Nov 2017 10:46:30 +0000 (16:16 +0530)
committerMats Wichmann <mats@linux.com>
Sat, 21 Apr 2018 14:33:37 +0000 (14:33 +0000)
Printing int64_t value as "%ld" triggered build
failure as int64_t is "long long int" in 32 bit linux
environment. Using "PRId64" so that compiler chooses
"long int" or "long long int" based on it's architecture.

Change-Id: I92c22a312465875cfd0b077c85d215ac9aa4d0d1
Signed-off-by: Harry <h.marappa@samsung.com>
service/notification/examples/linux/cloud_connector.c

index 117592f..54fc789 100644 (file)
@@ -138,7 +138,7 @@ void printRepresentation(OCRepPayloadValue *value)
                             printf("Value: None\n");
                             break;
                     case OCREP_PROP_INT:
-                            printf("Value: %ld\n", value->i);
+                            printf("Value: %"PRId64"\n", value->i);
                             break;
                     case OCREP_PROP_DOUBLE:
                             printf("Value: %f\n", value->d);