From 10a5742d642d6c7786e47bde8a0e6a00c2bd89d3 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Wed, 3 Jun 2009 05:43:22 +0000 Subject: [PATCH] changed %s to %a to print correct ascii string. --- .../DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c | 8 ++++---- .../PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c b/UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.c index 1d5cfe48a..7a4e670e3 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 e20b16a81..579553c4e 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)); } -- 2.11.4.GIT