From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 2/2] x86/EFI: drop redundant newlines from blexit() argument strings
Date: Thu, 7 Nov 2013 11:00:02 +0000 [thread overview]
Message-ID: <527B72B2.4000704@citrix.com> (raw)
In-Reply-To: <527B554F020000780010076F@nat28.tlf.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 4219 bytes --]
On 07/11/13 07:54, Jan Beulich wrote:
> The function issues a newline itself.
>
> Also correct two slightly misplaced __initdata annotations.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>
> --- a/xen/arch/x86/efi/boot.c
> +++ b/xen/arch/x86/efi/boot.c
> @@ -61,8 +61,8 @@ struct file {
> static EFI_BOOT_SERVICES *__initdata efi_bs;
> static EFI_HANDLE __initdata efi_ih;
>
> -static SIMPLE_TEXT_OUTPUT_INTERFACE __initdata *StdOut;
> -static SIMPLE_TEXT_OUTPUT_INTERFACE __initdata *StdErr;
> +static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdOut;
> +static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;
>
> static UINT32 __initdata mdesc_ver;
>
> @@ -736,7 +736,7 @@ static void __init relocate_image(unsign
> }
> break;
> default:
> - blexit(L"Unsupported relocation type\r\n");
> + blexit(L"Unsupported relocation type");
> }
> }
> base_relocs = (const void *)(base_relocs->entries + i + (i & 1));
> @@ -804,9 +804,9 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY
>
> xen_phys_start = (UINTN)loaded_image->ImageBase;
> if ( (xen_phys_start + loaded_image->ImageSize - 1) >> 32 )
> - blexit(L"Xen must be loaded below 4Gb.\r\n");
> + blexit(L"Xen must be loaded below 4Gb.");
> if ( xen_phys_start & ((1 << L2_PAGETABLE_SHIFT) - 1) )
> - blexit(L"Xen must be loaded at a 2Mb boundary.\r\n");
> + blexit(L"Xen must be loaded at a 2Mb boundary.");
> trampoline_xen_phys_start = xen_phys_start;
>
> /* Get the file system interface. */
> @@ -925,13 +925,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY
> *tail = 0;
> }
> if ( !tail )
> - blexit(L"No configuration file found\r\n");
> + blexit(L"No configuration file found.");
> PrintStr(L"Using configuration file '");
> PrintStr(file_name);
> PrintStr(L"'\r\n");
> }
> else if ( !read_file(dir_handle, cfg_file_name, &cfg) )
> - blexit(L"Configuration file not found\r\n");
> + blexit(L"Configuration file not found.");
> pre_parse(&cfg);
>
> if ( section.w )
> @@ -954,13 +954,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY
> PrintStr(L"Chained configuration file '");
> PrintStr(name.w);
> efi_bs->FreePool(name.w);
> - blexit(L"'not found\r\n");
> + blexit(L"'not found.");
> }
> pre_parse(&cfg);
> efi_bs->FreePool(name.w);
> }
> if ( !name.s )
> - blexit(L"No Dom0 kernel image specified\r\n");
> + blexit(L"No Dom0 kernel image specified.");
> split_value(name.s);
> read_file(dir_handle, s2w(&name), &kernel);
> efi_bs->FreePool(name.w);
> @@ -968,7 +968,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY
> if ( !EFI_ERROR(efi_bs->LocateProtocol(&shim_lock_guid, NULL,
> (void **)&shim_lock)) &&
> shim_lock->Verify(kernel.ptr, kernel.size) != EFI_SUCCESS )
> - blexit(L"Dom0 kernel image could not be verified\r\n");
> + blexit(L"Dom0 kernel image could not be verified.");
>
> name.s = get_value(&cfg, section.s, "ramdisk");
> if ( name.s )
> @@ -1384,12 +1384,12 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY
> mbi.mem_upper -= efi_memmap_size;
> mbi.mem_upper &= -__alignof__(EFI_MEMORY_DESCRIPTOR);
> if ( mbi.mem_upper < xen_phys_start )
> - blexit(L"Out of static memory\r\n");
> + blexit(L"Out of static memory");
> efi_memmap = (void *)(long)mbi.mem_upper;
> status = efi_bs->GetMemoryMap(&efi_memmap_size, efi_memmap, &map_key,
> &efi_mdesc_size, &mdesc_ver);
> if ( EFI_ERROR(status) )
> - blexit(L"Cannot obtain memory map\r\n");
> + blexit(L"Cannot obtain memory map");
>
> /* Populate E820 table and check trampoline area availability. */
> e = e820map - 1;
>
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 5062 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2013-11-07 11:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 7:54 [PATCH 2/2] x86/EFI: drop redundant newlines from blexit() argument strings Jan Beulich
2013-11-07 11:00 ` Andrew Cooper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527B72B2.4000704@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.