From patchwork Mon May 29 15:15:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 100324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1592788vqr; Mon, 29 May 2023 08:23:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sawDRoat93wnOu7KaQw/iepCwUo0LgnNSBpmU+BnSWtdPFwS71TDoz6XQ2/nFhP246zNV X-Received: by 2002:a05:6a20:938f:b0:10d:3ff2:4531 with SMTP id x15-20020a056a20938f00b0010d3ff24531mr10395066pzh.29.1685373811271; Mon, 29 May 2023 08:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685373811; cv=none; d=google.com; s=arc-20160816; b=fG+n2tMeViUfUfs7PRIsmY8oKOMddPQSd0YjN1k1FtVr0g0ESC28jMVr3Kq0AXv6P3 6b1D83QRranApmQefoAkqpbDhgFPFURWwlnJ/sTyensqdhmXfLbobr3hNaPsmOMR1ddR pmeiF7+i8DWyhMfyvEPCY4ccP4xy0cqZKQLZfeCQG+2Y52KFXYkYV23DARi1TPYK/tbJ PwilEfUdbsIgTyrAKxc+H8petwEVOCuRak82pOXzPh3YdWOox6gSo/pZlr74PPIMidVv xsvCfLsBxFA6a9h/KevYEeWcflhERKHbxGUwVmkKqD+tkQ13ytdeq32D5eOPKGqsXr+b rj3g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BltMKT3kn+lp68ycQvoOpDcBVtIurMfM0OHRUsxk4vg=; b=mbRcWo4/edpDP7X1YjbORyErvemxXwOYiAzPtDOTKvCnzgyhD62VA45po/ZBHoGAwx Ne6Pa4zpfLDSrS9XFvBHvwgaGm6xueeqj57bMfvuPO48699ZIPkmTqd0/HLZP15uumOf 7CK368pkeRG0FkeQxJL9EZpU/sjqmml2bczvsG7mBdF7Hzp6YTbysd7C42VmZhe4672H 32Vim1VyVq1rkHZOOnskyLzReIx73oAKmithImNGnafROTPb8042Bd2HbUJJxhZOZBzS yr/O9USoJY2dkO8jKCfTb7/ufvBrbRHnziBgpr4YDhs5YCjK1P6W2PWN6L5daJnN3gdi ViqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Je23+tjF; 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 k7-20020a635607000000b0053071bc497dsi9932707pgb.90.2023.05.29.08.23.08; Mon, 29 May 2023 08:23:31 -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; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Je23+tjF; 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 S229705AbjE2PQF (ORCPT + 99 others); Mon, 29 May 2023 11:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjE2PQD (ORCPT ); Mon, 29 May 2023 11:16:03 -0400 Received: from smtp.smtpout.orange.fr (smtp-30.smtpout.orange.fr [80.12.242.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 954D4D2 for ; Mon, 29 May 2023 08:15:57 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 3ebBqRDyGfPgg3ebBqe9kc; Mon, 29 May 2023 17:15:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1685373355; bh=BltMKT3kn+lp68ycQvoOpDcBVtIurMfM0OHRUsxk4vg=; h=From:To:Cc:Subject:Date; b=Je23+tjFXIoQFK7nljsPigyn8btd5HgWlTRRcug7vc0TAY6XIxdjphHuC107i9Mky CrseczmHneG/8QLu1s2ax/qTB5lMGB3duWGtHvm5igrbr/UH8fbaNUVyMyihdnUpvJ Y4A8LSAsFBEra+B75VdrSE5ze7VDe3hhhgcGkSGU6LyKX7TDtWqjDncTccYylX13sx PKx7dwpl72hW0MPGX2ba/P2H2yWsza8wPwHzBm/QKaESbgPVQo6jK3skPdAP9mbQ0E jvpm4ThqKDPoW1IyF3RCWf8NVybC0GtqCYlLVGwqMK0rBCy+SKKGm/xdk/bX4p4hSP NGuQg16efvztw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 29 May 2023 17:15:55 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Robert Moore , "Rafael J. Wysocki" , Len Brown Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-acpi@vger.kernel.org, acpica-devel@lists.linuxfoundation.org Subject: [PATCH V2] ACPICA: Slightly simplify an error message in acpi_ds_result_push() Date: Mon, 29 May 2023 17:15:52 +0200 Message-Id: <1464371bc72147e10a392a18734e6c8dff330a9c.1685341309.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1767242529909978114?= X-GMAIL-MSGID: =?utf-8?q?1767242529909978114?= 'object' is known to be NULL at this point. There is little value to log it twice in the error message. Link: https://github.com/acpica/acpica/pull/875 Signed-off-by: Christophe JAILLET --- v2: Add a link to the PR on github Patch below and in the PR are slightly different because if CamelCase. drivers/acpi/acpica/dswstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/acpica/dswstate.c b/drivers/acpi/acpica/dswstate.c index d3841ded3a81..75338a13c802 100644 --- a/drivers/acpi/acpica/dswstate.c +++ b/drivers/acpi/acpica/dswstate.c @@ -146,8 +146,8 @@ acpi_ds_result_push(union acpi_operand_object *object, if (!object) { ACPI_ERROR((AE_INFO, - "Null Object! Obj=%p State=%p Num=%u", - object, walk_state, walk_state->result_count)); + "Null Object! State=%p Num=%u", + walk_state, walk_state->result_count)); return (AE_BAD_PARAMETER); }