libvirt/src/nwfilter
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
..
nwfilter_driver.c Rename internal DumpXML functions to GetXMLDesc 2011-05-10 20:32:41 +02:00
nwfilter_driver.h filter new files through cppi, so syntax-check passes once again 2010-03-26 22:47:30 +01:00
nwfilter_ebiptables_driver.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
nwfilter_ebiptables_driver.h Prefer C style comments over C++ ones 2011-01-29 00:59:45 +01:00
nwfilter_gentech_driver.c maint: avoid comparisons to bool constants 2011-05-06 10:28:28 -06:00
nwfilter_gentech_driver.h Allow hash tables to use generic pointers as keys 2011-02-25 13:00:54 +00:00
nwfilter_learnipaddr.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
nwfilter_learnipaddr.h nwfilter: extend nwfilter reload support 2010-08-16 12:59:54 -04:00