From: Stefan Weil Date: Thu, 23 Sep 2010 18:47:32 +0000 (+0200) Subject: blockdev: Use GCC_FMT_ATTR (format checking) X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ea421fee15f5f2d32c2b471cb2336463d4e316b;p=sdk%2Femulator%2Fqemu.git blockdev: Use GCC_FMT_ATTR (format checking) Additional changes: * Removed 'extern' from drive_add (avoids too long line). * Removed 'extern' from other functions (makes declarations consistent with others in same header file). Cc: Blue Swirl Cc: Kevin Wolf Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/blockdev.h b/blockdev.h index 89dcd9a..653affc 100644 --- a/blockdev.h +++ b/blockdev.h @@ -34,14 +34,13 @@ struct DriveInfo { #define MAX_IDE_DEVS 2 #define MAX_SCSI_DEVS 7 -extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); -extern int drive_get_max_bus(BlockInterfaceType type); -extern void drive_uninit(DriveInfo *dinfo); -extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs); - -extern QemuOpts *drive_add(const char *file, const char *fmt, ...); -extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, - int *fatal_error); +DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); +int drive_get_max_bus(BlockInterfaceType type); +void drive_uninit(DriveInfo *dinfo); +DriveInfo *drive_get_by_blockdev(BlockDriverState *bs); + +QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3); +DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error); /* device-hotplug */