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

Re: [PATCH] xen: Append a newline character to panic() where missing


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 14 Jun 2023 09:51:15 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BIzVhYmomZWZUbdg4SShtbg54CHyllQjw/0c8ZtktO4=; b=C1NuC8AJxc9Z1UopNJrDkB3fCDIiO7eQcNu9+8QArw9uvM4inUCGxsceYLUmtdm78C97ChbJDs25AcCYJMd1kIPasCpF/RZZDDA4kbf2+ALWZZIGkNK4baQe1J5ouz4LDXCzaCtneYH5lv9gvCKpZ6kHgu9UKe8nGkwgBEyK+b8Rv2rLImUA+AkG/gR0LCZlbF9FIxbKLq/Wq54De/7EQ6OL9+sOxtrmayb0R+2hYWi2uRFeI08K+dmE/p6r4i6LQB7Kt2ZKoLJh6+hBiviv9LabNyHRQDZx+Jz55FA68ll0970+2nMRgrObUbgP4op1qU5zE9HqKH/c4yF7zK7E3w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9b6dxrBjmj2RlF8PjxYEoZKQupWuJ42T2obGMomaIE5xyPshaGiDvmdPjVsJwDxdMyxjA/4ezsugwGD4fgkIIFk97zLqVZ9ztDHKVqa9kRqOBTlc4JxmMvxQUuV1GNyPorXXnMBsoJA6XFu+Kdp57jY97JZZVSmKMRTNxKLKP7PacehPg1hOoYeWG7DbNtI7gmXVBYrOaobQ5mFS9VK9uft7XpM1gfm0KlTBTlr0p0kYq9LSEkMsavv0xCy5u3PWTBCafOiiiOqDhyN6ChjzHUXbkOrZpT5HbqhNoLd0RKr7ktjRlgQ/TCeS/7uKYYGhQqOw4tuuXGVssdoCtgq3A==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 14 Jun 2023 09:51:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZnpIm6GPbd9zls0aOGDf+8HsR9K+KDlMA
  • Thread-topic: [PATCH] xen: Append a newline character to panic() where missing

Hi Michal,

> On 14 Jun 2023, at 09:30, Michal Orzel <michal.orzel@xxxxxxx> wrote:
> 
> Missing newline is inconsistent with the rest of the callers, since
> panic() expects it.
> 
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

And I agree with Julien: trailing punctuation is not an issue and
I would definitely not require you to fix it.

Cheers
Bertrand

> ---
> xen/arch/arm/bootfdt.c            | 2 +-
> xen/arch/arm/domain_build.c       | 6 +++---
> xen/arch/x86/cpu/microcode/core.c | 2 +-
> 3 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c
> index b6f92a174f5f..2673ad17a1e1 100644
> --- a/xen/arch/arm/bootfdt.c
> +++ b/xen/arch/arm/bootfdt.c
> @@ -225,7 +225,7 @@ static int __init process_reserved_memory_node(const void 
> *fdt, int node,
>                                  size_cells, data);
> 
>     if ( rc == -ENOSPC )
> -        panic("Max number of supported reserved-memory regions reached.");
> +        panic("Max number of supported reserved-memory regions reached.\n");
>     else if ( rc != -ENOENT )
>         return rc;
>     return 0;
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 579bc8194fed..d0d6be922db1 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -74,7 +74,7 @@ int __init parse_arch_dom0_param(const char *s, const char 
> *e)
> 
>         return 0;
> #else
> -        panic("'sve' property found, but CONFIG_ARM64_SVE not selected");
> +        panic("'sve' property found, but CONFIG_ARM64_SVE not selected\n");
> #endif
>     }
> 
> @@ -697,7 +697,7 @@ static void __init allocate_static_memory(struct domain 
> *d,
>     return;
> 
>  fail:
> -    panic("Failed to allocate requested static memory for domain %pd.", d);
> +    panic("Failed to allocate requested static memory for domain %pd.\n", d);
> }
> 
> /*
> @@ -769,7 +769,7 @@ static void __init assign_static_memory_11(struct domain 
> *d,
>     return;
> 
>  fail:
> -    panic("Failed to assign requested static memory for direct-map domain 
> %pd.",
> +    panic("Failed to assign requested static memory for direct-map domain 
> %pd.\n",
>           d);
> }
> 
> diff --git a/xen/arch/x86/cpu/microcode/core.c 
> b/xen/arch/x86/cpu/microcode/core.c
> index e65af4b82ea3..c3fee629063e 100644
> --- a/xen/arch/x86/cpu/microcode/core.c
> +++ b/xen/arch/x86/cpu/microcode/core.c
> @@ -524,7 +524,7 @@ static int control_thread_fn(const struct microcode_patch 
> *patch)
>          */
>         if ( wait_for_condition(wait_cpu_callout, (done + 1),
>                                 MICROCODE_UPDATE_TIMEOUT_US) )
> -            panic("Timeout when finished updating microcode (finished 
> %u/%u)",
> +            panic("Timeout when finished updating microcode (finished 
> %u/%u)\n",
>                   done, nr_cores);
> 
>         /* Print warning message once if long time is spent here */
> 
> base-commit: 2f69ef96801f0d2b9646abf6396e60f99c56e3a0
> -- 
> 2.25.1
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.