From 109e9a6156b2c9540fd4b1b6ce17ac5be1fa03c4 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Sun, 4 Jan 2009 03:20:55 +0000 Subject: Code scrub for the following drivers and librarys. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7172 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Application/HelloWorld/HelloWorld.c | 13 ++++++++----- MdeModulePkg/Application/HelloWorld/HelloWorld.inf | 9 +++++---- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'MdeModulePkg/Application/HelloWorld') diff --git a/MdeModulePkg/Application/HelloWorld/HelloWorld.c b/MdeModulePkg/Application/HelloWorld/HelloWorld.c index 5ffddfb481..19e5791fa8 100644 --- a/MdeModulePkg/Application/HelloWorld/HelloWorld.c +++ b/MdeModulePkg/Application/HelloWorld/HelloWorld.c @@ -1,7 +1,8 @@ /** @file - This simple application just print a "UEFI Hello World!" to the UEFI Console. - - Copyright (c) 2006 - 2007, Intel Corporation + This sample application bases on HelloWorld PCD setting + to print "UEFI Hello World!" to the UEFI Console. + + Copyright (c) 2006 - 2008, 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 @@ -20,8 +21,7 @@ /** The user Entry Point for Application. The user code starts with this function - as the real entry point for the image goes into a library that calls this - function. + as the real entry point for the application. @param[in] ImageHandle The firmware allocated handle for the EFI image. @param[in] SystemTable A pointer to the EFI System Table. @@ -46,6 +46,9 @@ UefiMain ( // if (FeaturePcdGet (PcdHelloWorldPrintEnable)) { for (Index = 0; Index < PcdGet32 (PcdHelloWorldPrintTimes); Index ++) { + // + // Use UefiLib Print API to print string to UEFI console + // Print ((CHAR16*)PcdGetPtr (PcdHelloWorldPrintString)); } } diff --git a/MdeModulePkg/Application/HelloWorld/HelloWorld.inf b/MdeModulePkg/Application/HelloWorld/HelloWorld.inf index c284fa4460..50fb686319 100644 --- a/MdeModulePkg/Application/HelloWorld/HelloWorld.inf +++ b/MdeModulePkg/Application/HelloWorld/HelloWorld.inf @@ -1,8 +1,10 @@ #/** @file -# Sample UEFI Application Reference Module +# Sample UEFI Application Reference EDKII Module # -# This is a shell application that will display Hello World. -# Copyright (c) 2008, Intel Corporation. +# This is a shell application that will display Hello World. +# It uses EDKII PCD feature to show PCD usage and configuration. +# +# Copyright (c) 2008, 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 @@ -20,7 +22,6 @@ FILE_GUID = 6987936E-ED34-44db-AE97-1FA5E4ED2116 MODULE_TYPE = UEFI_APPLICATION VERSION_STRING = 1.0 - ENTRY_POINT = UefiMain # -- cgit v1.2.3