mirror of
https://github.com/acpica/acpica/
synced 2025-03-11 00:31:53 +03:00
Fix for ToString optional "length" param
date 2001.07.11.20.54.00; author rmoore1; state Exp;
This commit is contained in:
parent
e3883b9389
commit
cc3ed183b0
@ -1,8 +1,8 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asloperands - AML opcode generation
|
||||
* $Revision: 1.23 $
|
||||
* Module Name: asloperands - AML operand processing
|
||||
* $Revision: 1.25 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -686,13 +686,21 @@ OpnDoPackage (
|
||||
}
|
||||
|
||||
|
||||
if (!PackageLength)
|
||||
/*
|
||||
* If not a variable-length package, check for a zero
|
||||
* package length
|
||||
*/
|
||||
if ((PackageLengthNode->ParseOpcode == INTEGER) ||
|
||||
(PackageLengthNode->ParseOpcode == DEFAULT_ARG))
|
||||
{
|
||||
/* No length AND no items -- issue a warning */
|
||||
if (!PackageLength)
|
||||
{
|
||||
/* No length AND no items -- issue a warning */
|
||||
|
||||
AslError (ASL_WARNING, ASL_MSG_PACKAGE_LENGTH, PackageLengthNode, NULL);
|
||||
AslError (ASL_WARNING, ASL_MSG_PACKAGE_LENGTH, PackageLengthNode, NULL);
|
||||
|
||||
/* But go ahead and put the buffer length of zero into the AML */
|
||||
/* But go ahead and put the buffer length of zero into the AML */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user