mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-02 13:44:00 +00:00
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> |
||
---|---|---|
.. | ||
arch/x86 | ||
common | ||
debug | ||
lib | ||
public | ||
hv_debug.h | ||
hv_lib.h | ||
hypervisor.h |