qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 01/13] qemu-config: }, { -> }, { to please checkpatc


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 01/13] qemu-config: }, { -> }, { to please checkpatch.pl
Date: Tue, 14 Jun 2011 19:18:19 +0100

The checkpatch.pl coding style checker complains that there should be a
space after the comma in },{.  Make it easy for others to change
qemu-config.c in the future by complying with the coding style here.

A follow-up patch adds new options to qemu-config.c and therefore
benefits from this fix.

Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 qemu-config.c |  160 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 80 insertions(+), 80 deletions(-)

diff --git a/qemu-config.c b/qemu-config.c
index c63741c..7558fa8 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -12,70 +12,70 @@ static QemuOptsList qemu_drive_opts = {
             .name = "bus",
             .type = QEMU_OPT_NUMBER,
             .help = "bus number",
-        },{
+        }, {
             .name = "unit",
             .type = QEMU_OPT_NUMBER,
             .help = "unit number (i.e. lun for scsi)",
-        },{
+        }, {
             .name = "if",
             .type = QEMU_OPT_STRING,
             .help = "interface (ide, scsi, sd, mtd, floppy, pflash, virtio)",
-        },{
+        }, {
             .name = "index",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "cyls",
             .type = QEMU_OPT_NUMBER,
             .help = "number of cylinders (ide disk geometry)",
-        },{
+        }, {
             .name = "heads",
             .type = QEMU_OPT_NUMBER,
             .help = "number of heads (ide disk geometry)",
-        },{
+        }, {
             .name = "secs",
             .type = QEMU_OPT_NUMBER,
             .help = "number of sectors (ide disk geometry)",
-        },{
+        }, {
             .name = "trans",
             .type = QEMU_OPT_STRING,
             .help = "chs translation (auto, lba. none)",
-        },{
+        }, {
             .name = "media",
             .type = QEMU_OPT_STRING,
             .help = "media type (disk, cdrom)",
-        },{
+        }, {
             .name = "snapshot",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "file",
             .type = QEMU_OPT_STRING,
             .help = "disk image",
-        },{
+        }, {
             .name = "cache",
             .type = QEMU_OPT_STRING,
             .help = "host cache usage (none, writeback, writethrough, unsafe)",
-        },{
+        }, {
             .name = "aio",
             .type = QEMU_OPT_STRING,
             .help = "host AIO implementation (threads, native)",
-        },{
+        }, {
             .name = "format",
             .type = QEMU_OPT_STRING,
             .help = "disk format (raw, qcow2, ...)",
-        },{
+        }, {
             .name = "serial",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "rerror",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "werror",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "addr",
             .type = QEMU_OPT_STRING,
             .help = "pci address (virtio only)",
-        },{
+        }, {
             .name = "readonly",
             .type = QEMU_OPT_BOOL,
         },
@@ -91,64 +91,64 @@ static QemuOptsList qemu_chardev_opts = {
         {
             .name = "backend",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "path",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "host",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "port",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "localaddr",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "localport",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "to",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "ipv4",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "ipv6",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "wait",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "server",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "delay",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "telnet",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "width",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "height",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "cols",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "rows",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "mux",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "signal",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "name",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "debug",
             .type = QEMU_OPT_NUMBER,
         },
@@ -245,10 +245,10 @@ static QemuOptsList qemu_rtc_opts = {
         {
             .name = "base",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "clock",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "driftfix",
             .type = QEMU_OPT_STRING,
         },
@@ -263,10 +263,10 @@ static QemuOptsList qemu_global_opts = {
         {
             .name = "driver",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "property",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "value",
             .type = QEMU_OPT_STRING,
         },
@@ -282,13 +282,13 @@ static QemuOptsList qemu_mon_opts = {
         {
             .name = "mode",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "chardev",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "default",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "pretty",
             .type = QEMU_OPT_BOOL,
         },
@@ -318,40 +318,40 @@ static QemuOptsList qemu_cpudef_opts = {
         {
             .name = "name",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "level",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "vendor",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "family",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "model",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "stepping",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "feature_edx",      /* cpuid 0000_0001.edx */
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "feature_ecx",      /* cpuid 0000_0001.ecx */
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "extfeature_edx",   /* cpuid 8000_0001.edx */
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "extfeature_ecx",   /* cpuid 8000_0001.ecx */
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "xlevel",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "model_id",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "vendor_override",
             .type = QEMU_OPT_NUMBER,
         },
@@ -366,73 +366,73 @@ QemuOptsList qemu_spice_opts = {
         {
             .name = "port",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "tls-port",
             .type = QEMU_OPT_NUMBER,
-        },{
+        }, {
             .name = "addr",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "ipv4",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "ipv6",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "password",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "disable-ticketing",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "disable-copy-paste",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "sasl",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "x509-dir",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "x509-key-file",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "x509-key-password",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "x509-cert-file",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "x509-cacert-file",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "x509-dh-key-file",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "tls-ciphers",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "tls-channel",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "plaintext-channel",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "image-compression",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "jpeg-wan-compression",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "zlib-glz-wan-compression",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "streaming-video",
             .type = QEMU_OPT_STRING,
-        },{
+        }, {
             .name = "agent-mouse",
             .type = QEMU_OPT_BOOL,
-        },{
+        }, {
             .name = "playback-compression",
             .type = QEMU_OPT_BOOL,
         },
-- 
1.7.5.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]