summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiLib/UefiLibPrint.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-16 02:12:35 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-16 02:12:35 +0000
commit9edc73ada43b313117ef1662c16c85114a480b8b (patch)
tree166a53581ec6846cf0deeeea768491cb6236424c /MdePkg/Library/UefiLib/UefiLibPrint.c
parent33629bba69a3fc8e77b14677bbe8a00c879a3d6c (diff)
downloadedk2-9edc73ada43b313117ef1662c16c85114a480b8b.tar.gz
edk2-9edc73ada43b313117ef1662c16c85114a480b8b.tar.bz2
edk2-9edc73ada43b313117ef1662c16c85114a480b8b.zip
Code clean up.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5890 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiLib/UefiLibPrint.c')
-rw-r--r--MdePkg/Library/UefiLib/UefiLibPrint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c
index c277974ab4..3787431c67 100644
--- a/MdePkg/Library/UefiLib/UefiLibPrint.c
+++ b/MdePkg/Library/UefiLib/UefiLibPrint.c
@@ -212,7 +212,6 @@ AsciiInternalPrint (
string is greater than PcdUefiLibMaxPrintBufferSize, then only the first
PcdUefiLibMaxPrintBufferSize characters are sent to ConOut.
If Format is NULL, then ASSERT().
- If Format is not aligned on a 16-bit boundary, then ASSERT().
@param Format Null-terminated ASCII format string.
@param ... VARARG list consumed to process Format.
@@ -230,7 +229,8 @@ AsciiPrint (
{
VA_LIST Marker;
UINTN Return;
-
+ ASSERT (Format != NULL);
+
VA_START (Marker, Format);
Return = AsciiInternalPrint( Format, gST->ConOut, Marker);
@@ -250,7 +250,6 @@ AsciiPrint (
string is greater than PcdUefiLibMaxPrintBufferSize, then only the first
PcdUefiLibMaxPrintBufferSize characters are sent to StdErr.
If Format is NULL, then ASSERT().
- If Format is not aligned on a 16-bit boundary, then ASSERT().
@param Format Null-terminated ASCII format string.
@param ... VARARG list consumed to process Format.
@@ -269,6 +268,8 @@ AsciiErrorPrint (
VA_LIST Marker;
UINTN Return;
+ ASSERT (Format != NULL);
+
VA_START (Marker, Format);
Return = AsciiInternalPrint( Format, gST->StdErr, Marker);