mirror of
https://github.com/acpica/acpica/
synced 2025-02-13 12:04:08 +03:00
iASL: Fix to seek to zero on AML file for listings.
Fixes a problem introduced in a previous commit to emit more file statistics for the iASL summary. The getfilesize function no longer leaves the file at offset 0, it preserves the current offset. Therefore, this patch fixes code that depended on that behavior.
This commit is contained in:
parent
f8d85c9777
commit
2b8ab3c4fd
@ -1381,6 +1381,7 @@ LsDoHexOutputC (
|
||||
/* Get AML size, seek back to start */
|
||||
|
||||
AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT);
|
||||
FlSeekFile (ASL_FILE_AML_OUTPUT, 0);
|
||||
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, " * C source code output\n");
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n",
|
||||
@ -1468,6 +1469,7 @@ LsDoHexOutputAsl (
|
||||
/* Get AML size, seek back to start */
|
||||
|
||||
AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT);
|
||||
FlSeekFile (ASL_FILE_AML_OUTPUT, 0);
|
||||
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, " * ASL source code output\n");
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n",
|
||||
@ -1555,6 +1557,7 @@ LsDoHexOutputAsm (
|
||||
/* Get AML size, seek back to start */
|
||||
|
||||
AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT);
|
||||
FlSeekFile (ASL_FILE_AML_OUTPUT, 0);
|
||||
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, "; Assembly code source output\n");
|
||||
FlPrintFile (ASL_FILE_HEX_OUTPUT, "; AML code block contains 0x%X bytes\n;\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user