Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81677241 authored by Bob Moore's avatar Bob Moore Committed by Rafael J. Wysocki
Browse files

ACPICA: AML Debug Object: Don't ignore output of zero-length strings



The implementation previously ignored null strings (""), but
these could be important, especially for debug.

Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarErik Schmauss <erik.schmauss@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1c29c372
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -88,14 +88,13 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc,
		return_VOID;
	}

	/* Null string or newline -- don't emit the line header */
	/* Newline -- don't emit the line header */

	if (source_desc &&
	    (ACPI_GET_DESCRIPTOR_TYPE(source_desc) == ACPI_DESC_TYPE_OPERAND) &&
	    (source_desc->common.type == ACPI_TYPE_STRING)) {
		if ((source_desc->string.length == 0) ||
		    ((source_desc->string.length == 1) &&
		     (*source_desc->string.pointer == '\n'))) {
		if ((source_desc->string.length == 1) &&
		    (*source_desc->string.pointer == '\n')) {
			acpi_os_printf("\n");
			return_VOID;
		}