From: "Jan Beulich" Subject: [PATCH 2/2] x86/EFI: drop redundant newlines from blexit() argument strings Date: Thu, 07 Nov 2013 07:54:39 +0000 Message-ID: <527B554F020000780010076F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part291A0D2F.0__=" Return-path: Received: from [193.109.254.103] (helo=mail6.bemta14.messagelabs.com) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeKQh-0000Rb-PH for xen-devel@lists.xenproject.org; Thu, 07 Nov 2013 07:55:04 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part291A0D2F.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The function issues a newline itself. Also correct two slightly misplaced __initdata annotations. Signed-off-by: Jan Beulich --- 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; =20 -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; =20 static UINT32 __initdata mdesc_ver; =20 @@ -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 =3D (const void *)(base_relocs->entries + i + (i & = 1)); @@ -804,9 +804,9 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY =20 xen_phys_start =3D (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 =3D xen_phys_start; =20 /* Get the file system interface. */ @@ -925,13 +925,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY *tail =3D 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); =20 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) !=3D EFI_SUCCESS ) - blexit(L"Dom0 kernel image could not be verified\r\n"); + blexit(L"Dom0 kernel image could not be verified."); =20 name.s =3D get_value(&cfg, section.s, "ramdisk"); if ( name.s ) @@ -1384,12 +1384,12 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY mbi.mem_upper -=3D efi_memmap_size; mbi.mem_upper &=3D -__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 =3D (void *)(long)mbi.mem_upper; status =3D 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"); =20 /* Populate E820 table and check trampoline area availability. */ e =3D e820map - 1; --=__Part291A0D2F.0__= Content-Type: text/plain; name="x86-EFI-blexit-no-newline.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-EFI-blexit-no-newline.patch" x86/EFI: drop redundant newlines from blexit() argument strings=0A=0AThe = function issues a newline itself.=0A=0AAlso correct two slightly misplaced = __initdata annotations.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/efi/boot.c=0A+++ b/xen/arch/x86/efi/boot.c=0A@@ = -61,8 +61,8 @@ struct file {=0A static EFI_BOOT_SERVICES *__initdata = efi_bs;=0A static EFI_HANDLE __initdata efi_ih;=0A =0A-static SIMPLE_TEXT_O= UTPUT_INTERFACE __initdata *StdOut;=0A-static SIMPLE_TEXT_OUTPUT_INTERFACE = __initdata *StdErr;=0A+static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata = StdOut;=0A+static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;=0A =0A = static UINT32 __initdata mdesc_ver;=0A =0A@@ -736,7 +736,7 @@ static void = __init relocate_image(unsign=0A }=0A = break;=0A default:=0A- blexit(L"Unsupported = relocation type\r\n");=0A+ blexit(L"Unsupported relocation = type");=0A }=0A }=0A base_relocs =3D (const = void *)(base_relocs->entries + i + (i & 1));=0A@@ -804,9 +804,9 @@ = efi_start(EFI_HANDLE ImageHandle, EFI_SY=0A =0A xen_phys_start =3D = (UINTN)loaded_image->ImageBase;=0A if ( (xen_phys_start + loaded_image-= >ImageSize - 1) >> 32 )=0A- blexit(L"Xen must be loaded below = 4Gb.\r\n");=0A+ blexit(L"Xen must be loaded below 4Gb.");=0A if = ( xen_phys_start & ((1 << L2_PAGETABLE_SHIFT) - 1) )=0A- blexit(L"Xe= n must be loaded at a 2Mb boundary.\r\n");=0A+ blexit(L"Xen must be = loaded at a 2Mb boundary.");=0A trampoline_xen_phys_start =3D = xen_phys_start;=0A =0A /* Get the file system interface. */=0A@@ = -925,13 +925,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY=0A = *tail =3D 0;=0A }=0A if ( !tail )=0A- blexit(L"N= o configuration file found\r\n");=0A+ blexit(L"No configuration = file found.");=0A PrintStr(L"Using configuration file '");=0A = PrintStr(file_name);=0A PrintStr(L"'\r\n");=0A }=0A = else if ( !read_file(dir_handle, cfg_file_name, &cfg) )=0A- = blexit(L"Configuration file not found\r\n");=0A+ blexit(L"Configurat= ion file not found.");=0A pre_parse(&cfg);=0A =0A if ( section.w = )=0A@@ -954,13 +954,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY=0A = PrintStr(L"Chained configuration file '");=0A PrintStr(n= ame.w);=0A efi_bs->FreePool(name.w);=0A- blexit(L"'n= ot found\r\n");=0A+ blexit(L"'not found.");=0A }=0A = pre_parse(&cfg);=0A efi_bs->FreePool(name.w);=0A }=0A = if ( !name.s )=0A- blexit(L"No Dom0 kernel image specified\r\n");=0A= + blexit(L"No Dom0 kernel image specified.");=0A split_value(nam= e.s);=0A read_file(dir_handle, s2w(&name), &kernel);=0A efi_bs->Fre= ePool(name.w);=0A@@ -968,7 +968,7 @@ efi_start(EFI_HANDLE ImageHandle, = EFI_SY=0A if ( !EFI_ERROR(efi_bs->LocateProtocol(&shim_lock_guid, = NULL,=0A (void **)&shim_lock)) &&=0A = shim_lock->Verify(kernel.ptr, kernel.size) !=3D EFI_SUCCESS )=0A- = blexit(L"Dom0 kernel image could not be verified\r\n");=0A+ = blexit(L"Dom0 kernel image could not be verified.");=0A =0A name.s =3D = get_value(&cfg, section.s, "ramdisk");=0A if ( name.s )=0A@@ -1384,12 = +1384,12 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY=0A mbi.mem_upper = -=3D efi_memmap_size;=0A mbi.mem_upper &=3D -__alignof__(EFI_MEMORY_DES= CRIPTOR);=0A if ( mbi.mem_upper < xen_phys_start )=0A- = blexit(L"Out of static memory\r\n");=0A+ blexit(L"Out of static = memory");=0A efi_memmap =3D (void *)(long)mbi.mem_upper;=0A status = =3D efi_bs->GetMemoryMap(&efi_memmap_size, efi_memmap, &map_key,=0A = &efi_mdesc_size, &mdesc_ver);=0A if ( = EFI_ERROR(status) )=0A- blexit(L"Cannot obtain memory map\r\n");=0A+= blexit(L"Cannot obtain memory map");=0A =0A /* Populate E820 = table and check trampoline area availability. */=0A e =3D e820map - = 1;=0A --=__Part291A0D2F.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part291A0D2F.0__=--