libvirt/src/lxc
Lai Jiangshan b65f37a4a1 libvirt,logging: cleanup VIR_XXX0()
These VIR_XXXX0 APIs make us confused, use the non-0-suffix APIs instead.

How do these coversions works? The magic is using the gcc extension of ##.
When __VA_ARGS__ is empty, "##" will swallow the "," in "fmt," to
avoid compile error.

example: origin				after CPP
	high_level_api("%d", a_int)	low_level_api("%d", a_int)
	high_level_api("a  string")	low_level_api("a  string")

About 400 conversions.

8 special conversions:
VIR_XXXX0("") -> VIR_XXXX("msg") (avoid empty format) 2 conversions
VIR_XXXX0(string_literal_with_%) -> VIR_XXXX(%->%%) 0 conversions
VIR_XXXX0(non_string_literal) -> VIR_XXXX("%s", non_string_literal)
  (for security) 6 conversions

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
2011-05-11 12:41:14 -06:00
..
libvirtd_lxc.aug LXC add augeas support for config file 2009-10-08 18:06:40 +02:00
lxc_conf.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
lxc_conf.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
lxc_container.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
lxc_container.h Allow 32-on-64 execution for LXC guests 2011-02-24 12:04:29 +00:00
lxc_controller.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
lxc_driver.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
lxc_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
lxc.conf LXC add driver config file lxc.conf 2009-10-08 17:40:14 +02:00
test_libvirtd_lxc.aug LXC add augeas support for config file 2009-10-08 18:06:40 +02:00
veth.c Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
veth.h lxc: avoid large stacks with veth creation 2010-09-02 15:48:24 -06:00