projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ByteString support in CBOR wrapper in OIC stack
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
stack
/
include
/
payload_logging.h
diff --git
a/resource/csdk/stack/include/payload_logging.h
b/resource/csdk/stack/include/payload_logging.h
index
4c4dfbb
..
69cb45f
100644
(file)
--- a/
resource/csdk/stack/include/payload_logging.h
+++ b/
resource/csdk/stack/include/payload_logging.h
@@
-91,6
+91,10
@@
static inline void OCPayloadLogRep(LogLevel level, OCRepPayload* payload)
case OCREP_PROP_STRING:
OC_LOG_V(level, PL_TAG, "\t\t%s(string):%s", val->name, val->str);
break;
case OCREP_PROP_STRING:
OC_LOG_V(level, PL_TAG, "\t\t%s(string):%s", val->name, val->str);
break;
+ case OCREP_PROP_BYTE_STRING:
+ OC_LOG_V(level, PL_TAG, "\t\t%s(binary):", val->name);
+ OC_LOG_BUFFER(level, PL_TAG, val->ocByteStr.bytes, val->ocByteStr.len);
+ break;
case OCREP_PROP_OBJECT:
// Note: Only prints the URI (if available), to print further, you'll
// need to dig into the object better!
case OCREP_PROP_OBJECT:
// Note: Only prints the URI (if available), to print further, you'll
// need to dig into the object better!
@@
-123,6
+127,12
@@
static inline void OCPayloadLogRep(LogLevel level, OCRepPayload* payload)
val->arr.dimensions[0], val->arr.dimensions[1],
val->arr.dimensions[2]);
break;
val->arr.dimensions[0], val->arr.dimensions[1],
val->arr.dimensions[2]);
break;
+ case OCREP_PROP_BYTE_STRING:
+ OC_LOG_V(level, PL_TAG, "\t\t%s(byte array):%lld x %lld x %lld",
+ val->name,
+ val->arr.dimensions[0], val->arr.dimensions[1],
+ val->arr.dimensions[2]);
+ break;
case OCREP_PROP_OBJECT:
OC_LOG_V(level, PL_TAG, "\t\t%s(OCRep array):%lld x %lld x %lld",
val->name,
case OCREP_PROP_OBJECT:
OC_LOG_V(level, PL_TAG, "\t\t%s(OCRep array):%lld x %lld x %lld",
val->name,