Skip to contentSkip to conversation

iasl disasm OEM revision fix

PATCH New Ville Syrjälä 1 participant 1 message Nov 25, 2003 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iasl disasm OEM revision fix

The attached patch makes iasl disassembler print the OEM revision as an unsigned int instead of a signed int. The compiler wasn't happy with the negative value produced on my laptop...

Signature · 3 lines
Ville Syrjälä
[email protected]
http://www.sci.fi/~syrjala/
common/adisasm.c renamed from common/adisasm.c~ +1 -1
@@ -597,7 +597,7 @@
     AcpiOsPrintf (" *\n * Disassembly of %s, %s */\n", Filename, ctime (&Timer));
 
     AcpiOsPrintf (
-        "DefinitionBlock (\"%4.4s.aml\", \"%4.4s\", %hd, \"%.6s\", \"%.8s\", %d)\n",
+        "DefinitionBlock (\"%4.4s.aml\", \"%4.4s\", %hd, \"%.6s\", \"%.8s\", %u)\n",
         Table->Signature, Table->Signature, Table->Revision,
         Table->OemId, Table->OemTableId, Table->OemRevision);
 }