From patchwork Thu Oct 27 17:55:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 11897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp376149wru; Thu, 27 Oct 2022 11:00:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cF/0Z2mad21kZL1l6i5MOSgcMfNTs7WrchSWcKIqYq0qraa7dtxc/ZFoaSUkuYGLfcNjs X-Received: by 2002:a17:902:b093:b0:185:4aa1:402c with SMTP id p19-20020a170902b09300b001854aa1402cmr51332509plr.92.1666893612707; Thu, 27 Oct 2022 11:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666893612; cv=none; d=google.com; s=arc-20160816; b=IJptODDz8sICGRTd1WbmgGC2Z+HkzRmZ1AtCLQQRGUQQrrtQ10DyWwSH+CygMTB990 CNsL82nMaydl0gsz8n/0zowWLCmh8bI04XuhkR6cFqA6kKhvCgEVibuHzCSgl68e8V2e GfEJuU3GhsM6fWugCNv4TzqWOuBl39/PjfpUB2rTSQKOKzAAeS9regG7vSeTkVzbcss8 QL4frMkthlvcYBe2TvOGuQ/MUxP2Yd3sdsYLqSiXtKVvibN7kdokiCDOnENfRf9M9Im/ aL0/mp0B2JF6AuI6qWPtqxt09B71BYi3CDwECThVi5ZUVywrTozilM6PCrL5fH5OrUsE g1dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UlZTKtb26pCIxIjVMVh1QloeV0RRMBNT9vL1etxyV94=; b=I7sUjYlLjxgGg4vaST5qllXB6dKYUL4mob4nGVAK0i/4fXJlWGyaOZXaZLLxqAw3F6 2KKo0jdyGaFSwbL7HBjdObTwIfqVCv+tZyDWjOhfFvrANd+o5Rjo2xZE0n7hoXcFBP+N 9EtNGD28wHKv2lnWxLh4q9xcQGFY2hxoVifpTbklxjAESJ1SlmrcsAWKUzhRQ+t5vAp5 70TM/FY9Bt7a6GEaUrwefjkrIbOByjUxjmtwUGb1d2Ua3brpJppGnrSgt73BeQXsLdKW W1EjyLU2inCSW3i6TXIFKSN1xLdG0Upwv8IOiQOuI2LOE70DJAUXizd5TX5Y3YN+8ZYa fQbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020a63e117000000b00454a7fa276asi2469269pgh.181.2022.10.27.10.59.59; Thu, 27 Oct 2022 11:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235987AbiJ0R73 (ORCPT + 99 others); Thu, 27 Oct 2022 13:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235926AbiJ0R7L (ORCPT ); Thu, 27 Oct 2022 13:59:11 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0965F1781D8; Thu, 27 Oct 2022 10:59:09 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.0.0) id b6fae047edd6fe09; Thu, 27 Oct 2022 19:59:07 +0200 Received: from kreacher.localnet (unknown [213.134.169.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 4761F66D838; Thu, 27 Oct 2022 19:59:07 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore Subject: [PATCH 08/11] ACPICA: Improve warning message for "invalid ACPI name" Date: Thu, 27 Oct 2022 19:55:26 +0200 Message-ID: <1745901.VLH7GnMWUR@kreacher> In-Reply-To: <4756726.GXAFRqVoOG@kreacher> References: <4756726.GXAFRqVoOG@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 213.134.169.45 X-CLIENT-HOSTNAME: 213.134.169.45 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvddufedrudefgedrudeiledrgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeiledrgeehpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747864636710110050?= X-GMAIL-MSGID: =?utf-8?q?1747864636710110050?= From: Bob Moore ACPICA commit 91bef8bea9cd69c33447ba1bfe2c4273994500fd Added an underscore instead of an (illegal) * Link: https://github.com/acpica/acpica/commit/91bef8be Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- drivers/acpi/acpica/utstring.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Index: linux-pm/drivers/acpi/acpica/utstring.c =================================================================== --- linux-pm.orig/drivers/acpi/acpica/utstring.c +++ linux-pm/drivers/acpi/acpica/utstring.c @@ -145,7 +145,7 @@ void acpi_ut_repair_name(char *name) return; } - ACPI_COPY_NAMESEG(&original_name, name); + ACPI_COPY_NAMESEG(&original_name, &name[0]); /* Check each character in the name */ @@ -156,10 +156,10 @@ void acpi_ut_repair_name(char *name) /* * Replace a bad character with something printable, yet technically - * still invalid. This prevents any collisions with existing "good" + * "odd". This prevents any collisions with existing "good" * names in the namespace. */ - name[i] = '*'; + name[i] = '_'; found_bad_char = TRUE; } @@ -169,8 +169,8 @@ void acpi_ut_repair_name(char *name) if (!acpi_gbl_enable_interpreter_slack) { ACPI_WARNING((AE_INFO, - "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", - original_name, name)); + "Invalid character(s) in name (0x%.8X) %p, repaired: [%4.4s]", + original_name, name, &name[0])); } else { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",