qemu-s390x
[Top][All Lists]
Advanced

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

[qemu-s390x] [kvm-unit-tests PATCH 5/5] s390x: Fix sclp-ascii.c indents


From: Janosch Frank
Subject: [qemu-s390x] [kvm-unit-tests PATCH 5/5] s390x: Fix sclp-ascii.c indents
Date: Tue, 4 Dec 2018 14:48:38 +0100

Signed-off-by: Janosch Frank <address@hidden>
---
 lib/s390x/sclp-ascii.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/lib/s390x/sclp-ascii.c b/lib/s390x/sclp-ascii.c
index 5e23207..d60a5a2 100644
--- a/lib/s390x/sclp-ascii.c
+++ b/lib/s390x/sclp-ascii.c
@@ -93,20 +93,20 @@ static bool initialized = false;
 
 static void sclp_print_ascii(const char *str)
 {
-    int len = strlen(str);
-    WriteEventData *sccb = (void *)_sccb;
+       int len = strlen(str);
+       WriteEventData *sccb = (void *)_sccb;
 
-    while (sclp_busy)
-           /* Wait for SCLP request to complete */;
-    sclp_busy = true;
-    memset(sccb, 0, sizeof(*sccb));
-    sccb->h.length = sizeof(WriteEventData) + len;
-    sccb->h.function_code = SCLP_FC_NORMAL_WRITE;
-    sccb->ebh.length = sizeof(EventBufferHeader) + len;
-    sccb->ebh.type = SCLP_EVENT_ASCII_CONSOLE_DATA;
-    memcpy(sccb->data, str, len);
+       while (sclp_busy)
+               /* Wait for SCLP request to complete */;
+       sclp_busy = true;
+       memset(sccb, 0, sizeof(*sccb));
+       sccb->h.length = sizeof(WriteEventData) + len;
+       sccb->h.function_code = SCLP_FC_NORMAL_WRITE;
+       sccb->ebh.length = sizeof(EventBufferHeader) + len;
+       sccb->ebh.type = SCLP_EVENT_ASCII_CONSOLE_DATA;
+       memcpy(sccb->data, str, len);
 
-    sclp_service_call(SCLP_CMD_WRITE_EVENT_DATA, sccb);
+       sclp_service_call(SCLP_CMD_WRITE_EVENT_DATA, sccb);
 }
 
 static void sclp_print_lm(const char *str)
@@ -165,7 +165,7 @@ static void sclp_print_lm(const char *str)
  */
 static bool sclp_set_write_mask(void)
 {
-    WriteEventMask *sccb = (void *)_sccb;
+       WriteEventMask *sccb = (void *)_sccb;
 
        while (sclp_busy)
                /* Wait for SCLP request to complete */;
@@ -175,10 +175,10 @@ static bool sclp_set_write_mask(void)
        sccb->h.function_code = 0;
        sccb->mask_length = sizeof(sccb_mask_t);
 
-    /* For now we don't process sclp input. */
-    sccb->cp_receive_mask = 0;
-    /* We send ASCII and line mode. */
-    sccb->cp_send_mask = SCLP_EVENT_MASK_MSG_ASCII | SCLP_EVENT_MASK_MSG;
+       /* For now we don't process sclp input. */
+       sccb->cp_receive_mask = 0;
+       /* We send ASCII and line mode. */
+       sccb->cp_send_mask = SCLP_EVENT_MASK_MSG_ASCII | SCLP_EVENT_MASK_MSG;
 
        sclp_service_call(SCLP_CMD_WRITE_EVENT_MASK, sccb);
        while (sclp_busy) {
-- 
2.14.3




reply via email to

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