acrn-hypervisor/hypervisor/include/debug
Shiqing Gao 4360235edf hv: treewide: fix 'Macro parameter not in brackets'
Add the brackets for Macro parameter to avoid the unintentional
mistakes.

A simple example that may cause mistakes:
        #define minus(x) -x
When the following call is made,
        z = minus(a-b)
it becomes:
        z = -a-b;
where "-a - b" is equivalent to "(-a) - b" rather than "- (a - b)", as
expected.

v2 -> v3:
 * convert DMAR_WAIT_COMPLETION to inline function
 * remove the macro PIC_PIN_FOREACH and implement the well-formed
   for loop in each case
 * replace __CPP_STRING with STRINGIFY and remove the unused CPP_STRING

v1 -> v2:
 * Remove some changes to function like macro since MISRA-C requires to
   use inline functions if it is possible.
   These MACRO brackets violations will be fixed together when fixing
   other issues related to function like macro.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
2018-09-07 10:22:00 +08:00
..
console.h hv: fix 'No definition in system for prototyped procedure' 2018-08-22 13:11:25 +08:00
dump.h HV:treewide:Update cpu_id type as uint_16 2018-07-04 16:39:26 +08:00
logmsg.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
npk_log.h hv: debug: add the hypervisor NPK log 2018-08-23 11:09:25 +08:00
sbuf.h HV:debug:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
trace.h hv: cpu: remove unnecessary cpu_id valid check 2018-08-02 15:21:34 +08:00
vuart.h hv:Replace vuart pointer with instance in structure vm 2018-08-27 09:49:12 +08:00