]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/acpi/acpica/utdebug.c
ACPICA: All acpica: Update copyrights to 2018
[mirror_ubuntu-hirsute-kernel.git] / drivers / acpi / acpica / utdebug.c
index 77d8c9054b8eceec5576a2dc1c0953cc1152d5f4..2201be1bf4c2927ce1e623d809159724351858c0 100644 (file)
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2017, Intel Corp.
+ * Copyright (C) 2000 - 2018, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -163,7 +163,9 @@ acpi_debug_print(u32 requested_debug_level,
 {
        acpi_thread_id thread_id;
        va_list args;
+#ifdef ACPI_APPLICATION
        int fill_count;
+#endif
 
        /* Check if debug output enabled */
 
@@ -210,7 +212,7 @@ acpi_debug_print(u32 requested_debug_level,
        }
 
        acpi_os_printf("[%02ld] %*s",
-                      acpi_gbl_nesting_level, acpi_gbl_nesting_level, " ");
+                      acpi_gbl_nesting_level, acpi_gbl_nesting_level + 1, " ");
        acpi_os_printf("%s%*s: ",
                       acpi_ut_trim_function_name(function_name), fill_count,
                       " ");