Skip to contentSkip to conversation

qemu-trad: fix indentation

PATCH In review Wei Liu 2 participants 2 messages Mar 30, 2015 – Mar 31, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 qemu-trad: fix indentation

No functional change introduced.

---
 hw/xen_console.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
hw/xen_console.c +7 -7
index 80beb31..ef6dfab 100644
@@ -201,13 +201,13 @@ static int con_init(struct XenDevice *xendev)
     }
     qemu_free(type);
 
-	output = xenstore_read_str(con->console, "output");
-	/* output is a pty by default */
-	if (output == NULL)
-		output = "pty";
-	snprintf(label, sizeof(label), "xencons%d", con->xendev.dev);
-	con->chr = qemu_chr_open(label, output, NULL);
-	xenstore_store_pv_console_info(con->xendev.dev, con->chr, output);
+    output = xenstore_read_str(con->console, "output");
+    /* output is a pty by default */
+    if (output == NULL)
+        output = "pty";
+    snprintf(label, sizeof(label), "xencons%d", con->xendev.dev);
+    con->chr = qemu_chr_open(label, output, NULL);
+    xenstore_store_pv_console_info(con->xendev.dev, con->chr, output);
 
     return 0;
 }
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Wei Liu

No functional change introduced.

Quoted 31 lines
 hw/xen_console.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
hw/xen_console.c +7 -7
index 80beb31..ef6dfab 100644
@@ -201,13 +201,13 @@ static int con_init(struct XenDevice *xendev)
     }
     qemu_free(type);
 
-	output = xenstore_read_str(con->console, "output");
-	/* output is a pty by default */
-	if (output == NULL)
-		output = "pty";
-	snprintf(label, sizeof(label), "xencons%d", con->xendev.dev);
-	con->chr = qemu_chr_open(label, output, NULL);
-	xenstore_store_pv_console_info(con->xendev.dev, con->chr, output);
+    output = xenstore_read_str(con->console, "output");
+    /* output is a pty by default */
+    if (output == NULL)
+        output = "pty";
+    snprintf(label, sizeof(label), "xencons%d", con->xendev.dev);
+    con->chr = qemu_chr_open(label, output, NULL);
+    xenstore_store_pv_console_info(con->xendev.dev, con->chr, output);
 
     return 0;
 }
Signature · 1 line
1.9.1