qemu-s390x
[Top][All Lists]
Advanced

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

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


From: David Hildenbrand
Subject: Re: [qemu-s390x] [kvm-unit-tests PATCH 5/5] s390x: Fix sclp-ascii.c indents
Date: Tue, 4 Dec 2018 15:07:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

On 04.12.18 14:48, Janosch Frank wrote:
> 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) {
> 

For now we kept that file like that because it was essentially copied
from QEMU s390x-ccw sources. I don't have any strong opinions about this.

-- 

Thanks,

David / dhildenb



reply via email to

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