/* function to take a formatted argument and print it to a file. */
EFI_STATUS EFIAPI FileHandlePrintLine(IN EFI_FILE_HANDLE Handle, IN CONST CHAR16 *Format,...)
/* function to take a formatted argument and print it to a file. */
EFI_STATUS EFIAPI FileHandlePrintLine(IN EFI_FILE_HANDLE Handle, IN CONST CHAR16 *Format,...)
{
  VA_LIST     Marker;
  CHAR16      *Buffer;
  EFI_STATUS  Status;
  Buffer = AllocateZeroPool (PcdGet16 (PcdUefiFileHandleLibPrintBufferSize));
  if (Buffer == NULL) {
    return (EFI_OUT_OF_RESOURCES);
  }
  VA_START (Marker, Format);
  UnicodeVSPrint (Buffer, PcdGet16 (PcdUefiFileHandleLibPrintBufferSize), Format, Marker);
  VA_END (Marker);
  Status = FileHandleWriteLine (Handle, Buffer);
  FreePool (Buffer);
  return (Status);
}