libvirt/src/storage
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
..
parthelper.c storage: Allow to delete device mapper disk partition 2011-02-17 15:29:07 +08:00
storage_backend_disk.c maint: kill all remaining uses of old DEBUG macro 2011-02-21 08:46:52 -07:00
storage_backend_disk.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_fs.c Ignore backing file errors in FS storage pool 2011-03-11 09:54:44 -07:00
storage_backend_fs.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_iscsi.c storage: use virCommand to avoid compiler warning 2011-05-04 08:54:20 -06:00
storage_backend_iscsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_logical.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
storage_backend_logical.h Fix two out-of-date comments in LVM backend 2011-04-17 08:37:31 +02:00
storage_backend_mpath.c storage: make debug log more useful 2011-02-22 10:10:31 +08:00
storage_backend_mpath.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_scsi.c Improve SCSI volume key generation 2011-04-05 16:04:22 +01:00
storage_backend_scsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend.c maint: fix grammar errors 2011-04-12 09:06:14 -06:00
storage_backend.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
storage_driver.c Rename internal DumpXML functions to GetXMLDesc 2011-05-10 20:32:41 +02:00
storage_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00