Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1108979rwi; Thu, 27 Oct 2022 11:15:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wCsMs+yCe5FMsZSb9NNtubLapvXxtfvcm1eOIDEVsy4cqXikG8AuVou/uHp7ibzqprJ8K X-Received: by 2002:a17:90a:f414:b0:212:cacf:42c3 with SMTP id ch20-20020a17090af41400b00212cacf42c3mr11562648pjb.198.1666894530382; Thu, 27 Oct 2022 11:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666894530; cv=none; d=google.com; s=arc-20160816; b=xU47FE4KHQu5qL90cS/B4nVUt8gB+DsPoQ331b2T8w12fEQuvVtFtldIrvrpCI5Hd6 Pc4hGPHgY+78kopgg5gC2FIVhoXaplS7PTR1NAlqQ/yjX75vwfrFMjLbc4OOzNZC0wr7 EXHD17dYwVndCkAZ60GFQIuwRJaRrvsfGn3aA3vM0DqW5bS3dLkjn+ZLv5+7G5XuhwoY nkmm3XCKdvuWumEc9fo1jFTFEIUyAKS+w53qrQvb2vFSGlLBxcMeisBmAR7Dl7o2zvdG f7m38v5Wx5/hLObGhIR2WEDs3ksn3mILji0VlFYt4GQbDr9m6sFxTfzUhhHXfHuwqlsW 2BRw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pv8-20020a17090b3c8800b0021313aa3e48si2405216pjb.136.2022.10.27.11.15.18; Thu, 27 Oct 2022 11:15:30 -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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" 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 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]",