From 8c8f3dcb1709379c919b73754a664aa53d525c8a Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 3 Jun 2009 05:43:22 +0000 Subject: changed %s to %a to print correct ascii string. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8453 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c | 8 ++++---- .../PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'UnixPkg/Library') diff --git a/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c b/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c index 1d5cfe48a5..7a4e670e37 100644 --- a/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c +++ b/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c @@ -1,6 +1,6 @@ /**@file -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -90,7 +90,7 @@ PeCoffLoaderRelocateImageExtraAction ( Handle = NULL; Entry = NULL; - DEBUG ((EFI_D_ERROR, "Loading %s 0x%08lx - entry point 0x%08lx\n", + DEBUG ((EFI_D_ERROR, "Loading %a 0x%08lx - entry point 0x%08lx\n", ImageContext->PdbPointer, (UINTN)ImageContext->ImageAddress, (UINTN)ImageContext->EntryPoint)); @@ -100,12 +100,12 @@ PeCoffLoaderRelocateImageExtraAction ( if (Handle) { Entry = mUnix->Dlsym(Handle, "_ModuleEntryPoint"); } else { - DEBUG ((EFI_D_ERROR, "%s\n", mUnix->Dlerror())); + DEBUG ((EFI_D_ERROR, "%a\n", mUnix->Dlerror())); } if (Entry != NULL) { ImageContext->EntryPoint = Entry; - DEBUG ((EFI_D_ERROR, "Change %s Entrypoint to :0x%08lx\n", ImageContext->PdbPointer, Entry)); + DEBUG ((EFI_D_ERROR, "Change %a Entrypoint to :0x%08lx\n", ImageContext->PdbPointer, Entry)); } diff --git a/UnixPkg/Library/PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c b/UnixPkg/Library/PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c index e20b16a814..579553c4e3 100644 --- a/UnixPkg/Library/PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c +++ b/UnixPkg/Library/PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c @@ -1,6 +1,6 @@ /**@file -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -95,7 +95,7 @@ PeCoffLoaderRelocateImageExtraAction ( if (mUnix == NULL) { UnixPeCoffGetUnixThunkStucture (); } - DEBUG ((EFI_D_ERROR, "Loading %s 0x%08lx - entry point 0x%08lx\n", + DEBUG ((EFI_D_ERROR, "Loading %a 0x%08lx - entry point 0x%08lx\n", ImageContext->PdbPointer, (UINTN)ImageContext->ImageAddress, (UINTN)ImageContext->EntryPoint)); @@ -105,12 +105,12 @@ PeCoffLoaderRelocateImageExtraAction ( if (Handle) { Entry = mUnix->Dlsym(Handle, "_ModuleEntryPoint"); } else { - DEBUG ((EFI_D_ERROR, "%s\n", mUnix->Dlerror())); + DEBUG ((EFI_D_ERROR, "%a\n", mUnix->Dlerror())); } if (Entry != NULL) { ImageContext->EntryPoint = Entry; - DEBUG ((EFI_D_ERROR, "Change %s Entrypoint to :0x%08lx\n", ImageContext->PdbPointer, Entry)); + DEBUG ((EFI_D_ERROR, "Change %a Entrypoint to :0x%08lx\n", ImageContext->PdbPointer, Entry)); } -- cgit v1.2.3