]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Application/HelloWorld/HelloWorld.c
Update MDE and EdkModule packages for ICC build with /W4 /WX /Ox switches, for some...
[mirror_edk2.git] / EdkModulePkg / Application / HelloWorld / HelloWorld.c
CommitLineData
ed72955c 1/** @file\r
2 This driver supports platform security service\r
878ddf1f 3\r
ed72955c 4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
878ddf1f 9\r
ed72955c 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
878ddf1f 12\r
ed72955c 13**/\r
878ddf1f 14\r
1cc8ee78 15STATIC\r
878ddf1f 16VOID\r
17Print (\r
18 IN CONST CHAR16 *Format,\r
19 ...\r
20 )\r
21{\r
22 CHAR16 PrintBuffer[0x100];\r
23 VA_LIST Marker;\r
24\r
25 VA_START (Marker, Format);\r
26 UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker);\r
27 gST->ConOut->OutputString (gST->ConOut, PrintBuffer);\r
28 return;\r
29}\r
30\r
31EFI_STATUS\r
32EFIAPI\r
33UefiMain (\r
34 IN EFI_HANDLE ImageHandle,\r
35 IN EFI_SYSTEM_TABLE *SystemTable\r
36 )\r
37\r
38{\r
39 Print ((CHAR16 *)L"UEFI Hello World!\n");\r
40 return EFI_SUCCESS;\r
41}\r