Updated MSA by putting Specification element at the end of the header section
[mirror_edk2.git] / EdkModulePkg / Application / HelloWorld / HelloWorld.c
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 HelloWorld.c
15
16 Abstract:
17
18 This driver supports platform security service
19
20 --*/
21
22 VOID
23 Print (
24 IN CONST CHAR16 *Format,
25 ...
26 )
27 {
28 CHAR16 PrintBuffer[0x100];
29 VA_LIST Marker;
30
31 VA_START (Marker, Format);
32 UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker);
33 gST->ConOut->OutputString (gST->ConOut, PrintBuffer);
34 return;
35 }
36
37 EFI_STATUS
38 EFIAPI
39 UefiMain (
40 IN EFI_HANDLE ImageHandle,
41 IN EFI_SYSTEM_TABLE *SystemTable
42 )
43
44 {
45 Print ((CHAR16 *)L"UEFI Hello World!\n");
46 return EFI_SUCCESS;
47 }