acrn-hypervisor/hypervisor/arch/x86
Junjie Mao 16152fad79 HV: debug: stop using ## __VA_ARGS__
It is an extension of GCC CPP to:

* allow omitting a variable macro argument entirely, and
* use ## __VA_ARGS__ to remove the the comma before ## __VA_ARGS__ when
  __VA_ARGS__ is empty.

The only use of ## _VA_ARGS__ is to define the pr_xxx() macros, with the first
argument being the format string and the rest the to-be-formatted arguments. The
format string is explicitly spelled out because another macro pr_fmt() is used
to add to the format string a prefix which is customizable by defining what
pr_fmt() expands to.

For C99 compliance, this patch changes the pr_xxx() macros in the following
pattern.

    - #define pr_fatal(fmt, ...)				\
    -     do_logmsg(LOG_FATAL, pr_fmt(fmt), ## __VA_ARGS__);	\
    + #define pr_fatal(...)					\
    +     do_logmsg(LOG_FATAL, pr_prefix __VA_ARGS__);		\

Reference:

* https://gcc.gnu.org/onlinedocs/gcc/Variadic-Macros.html#Variadic-Macros

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
2018-05-29 14:13:44 +08:00
..
debug HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
guest HV: debug: stop using ## __VA_ARGS__ 2018-05-29 14:13:44 +08:00
assign.c HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
cpu_primary.S HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
cpu_secondary.S HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
cpu_state_tbl.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
cpu.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
cpuid.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
ept.c treewide: remove unnecessary unnamed structs/unions 2018-05-29 14:12:15 +08:00
gdt.c HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
idt.S initial import 2018-05-11 14:44:28 +08:00
interrupt.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
intr_lapic.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
intr_main.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
io.c treewide: remove unnecessary unnamed structs/unions 2018-05-29 14:12:15 +08:00
ioapic.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
irq.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
mmu.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
notify.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
retpoline-thunk.S retpoline: add indirect thunk support 2018-05-15 17:19:36 +08:00
softirq.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
timer.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
trusty.c HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
vmexit.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
vmx_asm.S Jmp to vm_exit directly to avoid calling vmlaunch again if vm-entry fails in vmresume 2018-05-15 17:19:37 +08:00
vmx.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
vtd.c HV: debug: stop using ## __VA_ARGS__ 2018-05-29 14:13:44 +08:00