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: 476411 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp224331jao; Tue, 13 Jul 2021 22:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6cLDZenBhIZ1ztlpek/Czri16iWHO6Ev65xgLNRQlp4e15/EPbtADyhoaWyWjpqMc1Gdd X-Received: by 2002:a05:6402:4314:: with SMTP id m20mr2328963edc.71.1626239966724; Tue, 13 Jul 2021 22:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626239966; cv=none; d=google.com; s=arc-20160816; b=Y+cpaFZG+VB0AVZQacc0sX8zUQW7C+whlmq/gbKXAUIxeKvwYH6KrOImckbfBD5WMU NU+S6aYgYdH6RgWsGL3+4zS6FzL8jdXLc13t9RG0rNRiLErssyX9jBYCDRIjdiz8D1Bk yavDrwlo6lU0sHY1Nb90bFt9Ibl+5On4jwqbizTJ2dRMjG6obVEcSwKyU04k3EZTVNbP 8Xu8sCiwrMlTX1v3qomQRbo8lpYHA8URvU8wk6xJQWNN32FozYBeBGSRXZ2XRZGtMrAY RCgbYQUmoVN4IEvUVOnSY+bCjwdrN5Kr0NLpOyy+WqM7/cdhiXpHzUl5A/JBF8ikcDwI Xv8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:user-agent:message-id:date:subject:cc:to:from :dkim-signature; bh=gnbc76coa0u1IDZQnc1oVNnIgTfg1ldkja5/t2uhHE4=; b=GNOkF9V9mTxGkmG8IbK5HZEo6+K7gCUwmjeld3y3DFP8Dv0jdq3rW5Fvjc+5sY0K5x R+9AL13JiC4U2BEQ9rGmNjBcpyZimPZWkyRjNqx5KmzMKveT/QhZnYmz9qMs6ktYkhnH Se66Jxz9s807JbDLe0fYF592Ad750I2Z3vjCqw8vG53iOWdnnDDuu2mA/656zkFsVTct C/6MG28IUr8rNJHSvodM+yYtLbghWA9krkrSTrZMXoTcWT3v4O18dPG981AdwrJ/jJYm jTSYLPfZ/GZnoXAzFE5anjznaL6dbHtN11IqjSA5acFpI2J0sPxKozLwYwMeD0iiBb0S NODw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0qkuL8P; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id hv11si1354670ejc.734.2021.07.13.22.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 22:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0qkuL8P; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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 --- lib/efi_loader/efi_capsule.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) Reviewed-by: Heinrich Schuchardt 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)