manual: (fixes #1286) NS_LOG clarification

This commit is contained in:
Tommaso Pecorella
2016-03-11 21:16:26 +01:00
parent 17c80dc005
commit 3b70174980

View File

@@ -424,6 +424,11 @@ Guidelines
Run some example programs with all log components turned on (e.g.
``NS_LOG="***"``).
* Use an explicit cast for any variable of type uint8_t or int8_t,
e.g., ``NS_LOG_LOGIC ("Variable i is " << static_cast<int> (i));``.
Without the cast, the integer is interpreted as a char, and the result
will be most likely not in line with the expectations.
This is a well documented C++ 'feature'.