diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-06 10:37:49 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-06 10:37:49 +0000 |
commit | 28c73f6ef7fc6cb1803d80761002ec2a7330d833 (patch) | |
tree | 66ab216f4494736fa66fee52642177ad968a705a /MdePkg/Library/BasePrintLib/PrintLib.c | |
parent | df569f61e3806ec8dbeef9c89123f5b223720c07 (diff) | |
download | edk2-platforms-28c73f6ef7fc6cb1803d80761002ec2a7330d833.tar.xz |
PciLib:
For PciRead/WriteBuffer(): A fix to handle boundary cases when Size is 0;
DevicePathLib:
For FileDevicePath(): Change to use AppendDevicePath () in place of AppendDevicePathNode().
PrintLib:
For type %p, according to current MWG, it should ignore flag 0, +, space, l, & L
Misc:
Fix a bug in EBC interpreter for Ia32.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@796 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePrintLib/PrintLib.c')
-rw-r--r-- | MdePkg/Library/BasePrintLib/PrintLib.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c index d33f49d388..33da6cb6b0 100644 --- a/MdePkg/Library/BasePrintLib/PrintLib.c +++ b/MdePkg/Library/BasePrintLib/PrintLib.c @@ -236,7 +236,7 @@ BasePrintLibVSPrint ( Format -= BytesPerFormatCharacter;
Precision = 0;
//
- // break skiped on purpose.
+ // break skipped on purpose.
//
default:
Done = TRUE;
@@ -256,18 +256,22 @@ BasePrintLibVSPrint ( //
switch (FormatCharacter) {
case 'p':
+ //
+ // Flag space, +, 0, L & l are invalid for type p.
+ //
+ Flags &= ~(PREFIX_BLANK | PREFIX_SIGN | PREFIX_ZERO | LONG_TYPE);
if (sizeof (VOID *) > 4) {
Flags |= LONG_TYPE;
}
case 'X':
Flags |= PREFIX_ZERO;
//
- // break skiped on purpose
+ // break skipped on purpose
//
case 'x':
Flags |= RADIX_HEX;
//
- // break skiped on purpose
+ // break skipped on purpose
//
case 'd':
if ((Flags & LONG_TYPE) == 0) {
|