From patchwork Wed Jul 14 05:19:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 1505007 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=o0qkuL8P; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GPm5h4b2hz9sXV for ; Wed, 14 Jul 2021 15:19:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D5BC82B64; Wed, 14 Jul 2021 07:19:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="o0qkuL8P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D12482BDD; Wed, 14 Jul 2021 07:19:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9A1782B30 for ; Wed, 14 Jul 2021 07:19:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pj1-x1030.google.com with SMTP id b5-20020a17090a9905b029016fc06f6c5bso980580pjp.5 for ; Tue, 13 Jul 2021 22:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=gnbc76coa0u1IDZQnc1oVNnIgTfg1ldkja5/t2uhHE4=; b=o0qkuL8PmZMKv52N3vaObgOsJVyJ3Xx9dmkAeaX2SRdTm0n50CVHkUwHJxJNXEgVBi JEmjcgU9z7G7ExUkNLIIcftULayixBgya8BMylfc68AehawYX+vP6HbJk2e7lFITXOyQ 3Z9K/vmaW+3ipP3ajWdMVk0p2RA2AcWCYFMt2UAQsPq6T8w3sRrt+C8la6+tThoCxVlE S5MJZlrNQxWuJqtoH/IYfM1vgi5vDKBiwQDCSg4E0BpUFwDCTtld6rbWeI97YK9kvo3O SuYzbDSF3PMuWWmkBPct5+rboD1B3rMk9Bz1CHXufQDSgxmbUVxY0HJNX3hFoVlP/yco HKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=gnbc76coa0u1IDZQnc1oVNnIgTfg1ldkja5/t2uhHE4=; b=Uk0kkkZzmIIR2nK4VeWvhHrKg0lgqasDMrhHW8Put6RgvUrg6AgB/WlCdeSjb3jdbq v5kaRAdCZJjdal/RxXAvev1zCkMAGT8Tfz0H52L8WPg3Rf8wo5JfUmvm9fXNCLVVpgKz rgWgKV/LqXtyLD6XsbRq47KyujaB45yr2FsVVTPOJUmwga0Ec9bZzvTx3bkIyWCoFsmf 7HLcdAKVuq551OMsbQ/DhcQsxQsX2q2a42g8DkzCLpx/tK/t6ucdIW5hVudS2xK9Kfny 2zczsIjeTGt/ZfYzlAz4rRdnVkQnR6NBtwaxmfZ3mRSmmUg9L9iL4E1GpRVIH0yPxmKF FR1g== X-Gm-Message-State: AOAM533TfRmADZ5NAxOG7iHvcAPjyRFfc3PyqiFS7Xp0BSIb8I6Un5vL B6+45P1w2PdHVsnjI86dZFxHRA== X-Google-Smtp-Source: ABdhPJyl7rA3GNwJvB4hEWwT+7MeiFzQGy+9jNBxYLhflb+FXPXJm5bJSoqS3EUUuSOTIDEOWNYAwg== X-Received: by 2002:a17:90a:6782:: with SMTP id o2mr1952392pjj.165.1626239956897; Tue, 13 Jul 2021 22:19:16 -0700 (PDT) Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id o1sm104410pgs.81.2021.07.13.22.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 22:19:16 -0700 (PDT) From: Masami Hiramatsu To: Heinrich Schuchardt Cc: Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , Masahisa Kojima , Takahiro Akashi , u-boot@lists.denx.de Subject: [PATCH] efi_loader: Use %pD to log device-path instead of local efi_dp_str() Date: Wed, 14 Jul 2021 14:19:13 +0900 Message-Id: <162623995338.251869.3448638991376913485.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Use %pD to log device-path instead of using efi_dp_str() and efi_free_pool() locally in find_boot_device(). This is a cleanup patch, no feature update nor fix. Suggested-by: Heinrich Schuchardt Signed-off-by: Masami Hiramatsu Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index b878e71438..a09c5705f1 100644 --- a/lib/efi_loader/efi_capsule.c +++ b/lib/efi_loader/efi_capsule.c @@ -691,11 +691,7 @@ skip: } found: if (boot_dev) { - u16 *path_str; - - path_str = efi_dp_str(boot_dev); - log_debug("Boot device %ls\n", path_str); - efi_free_pool(path_str); + log_debug("Boot device %pD\n", boot_dev); volume = efi_fs_from_path(boot_dev); if (!volume)