acrn-hypervisor/hypervisor/include/debug
Junjie Mao d0c61ce424 HV: trace: integral type cleanup
In the current trace.h, the entries use proper unsigned types while some
function prototypes and local variables still use plain 'int', resulting in
implicit signedness conversions.

This patch makes the following conversions:

    * evid: int -> uint32_t,
    * n_data & cpu: 8-bit bit-field -> uint8_t,
    * local variable holding the value from strnlen_s(): int -> size_t.

Note: In the following definition:

    struct trace_entry {
        uint64_t tsc; /* TSC */
        uint64_t id:48;
	....

The type of bit-field ''id'' cannot be uint32_t since gcc complains about
bit-fields larger than the type. Thus this patch keeps it as is.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-10 13:10:10 +08:00
..
assert.h hv: fix 'Recursion in procedure calls found' 2018-07-09 09:24:15 +08:00
console.h hv: prepare for Sx(S3/S5) support in ACRN. 2018-06-29 00:50:01 +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:Update cpu_id type as uint_16 2018-07-04 16:39:26 +08:00
printf.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
sbuf.h HV:debug:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
serial.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
shell.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
trace.h HV: trace: integral type cleanup 2018-07-10 13:10:10 +08:00
vuart.h initial import 2018-05-11 14:44:28 +08:00