From patchwork Tue Jul 18 21:42:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 108238 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6493035qge; Tue, 18 Jul 2017 15:00:16 -0700 (PDT) X-Received: by 10.101.91.76 with SMTP id y12mr3791673pgr.55.1500415215946; Tue, 18 Jul 2017 15:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500415215; cv=none; d=google.com; s=arc-20160816; b=ekI4i9ShlL8Ijko4y13NWHJwEEmQFuGKczDzD0YGKv4u+LZv3O7Pv4jP1cwkT7Cbw0 Z/l5HcE6Hr1UrO6xkxwe2pG3zZbykj3EoKldPPkp3jNmDFKHXMLucsT+86d0yu/R8uAJ uOnGn84iIS+cNSWXFaWzSU3QejyudEBm7bQIBJ551wNKDYWrUwgdoqNssWYhSBhDWE0R 4rcqUMMJfJR5zm3dph/sR5ckgBJQ+XokX1O6WivsfCmsVVeJPfQF0Pf0diK8BnSlWtCb JlPnpB5Pj+Zjjuw93rpKpa1UlpbbEMNSOTYwcUjCh90leWVfNK/N9p3ezdxqdTG1N75o TWgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pNo70F/XcoYsctupd850CCUk8+fFykqeH6NcE5X7Tvs=; b=FtBYYs8ecp3gfZQrNSthMHQXv+geO1PSsvGSIKNHyZANBox54IB4MQjcv/NM9DAFqM 4Uu2cO9GVh9sDB7XhBLyN71xHHSm93hagmqr8dCe7Gu/OWq/xGePfH+mA8MoU54RcIkk EXTELeZOLDU41aVIH0SGRMOPajNJk0hR0H92/AsuZaVymr5YcdlVCs652KqnjZkFD/jn T7JAg1gk3EZhnxf0oHOYf+rvh0xDimLDpaTGk852SNrKExmFL41RkN1z5O0dUiUe+xms v0Uc425J/6wXUcCyAW8AFuuFzIN6LKHsLewzrd79gnQn6CLZr4It2NyFmyuiC1HMps0m ch3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m62si2672157pga.374.2017.07.18.15.00.15; Tue, 18 Jul 2017 15:00:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752847AbdGRWAK (ORCPT + 25 others); Tue, 18 Jul 2017 18:00:10 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33006 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbdGRVn6 (ORCPT ); Tue, 18 Jul 2017 17:43:58 -0400 Received: by mail-pf0-f193.google.com with SMTP id e199so4070245pfh.0; Tue, 18 Jul 2017 14:43:57 -0700 (PDT) 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; bh=pNo70F/XcoYsctupd850CCUk8+fFykqeH6NcE5X7Tvs=; b=mcrgdVAPF9Y+oF7ZDZjyjImLFE0bsHB/jbxxalwM7dUvgSaIzZmzh+sbMKtjS1hCqM TWoIk4malI5+WNpF5LFWJaBq3+HiQ9OgQBlyD2VO2vi8OHWl+lyRi5M+VaQqoI2x1ken T5Gk2NKDgoqrN4b4ibLfxbOpLkjEMCSr4xJyLbGmKAa7SWpEoQzRKMl/rn5z9eIF/G4D f60ih5uiSJrhP3NVMOex/jbQlkjbEchQsb//YrT7XEMtAW/BSo1xC0T4mO1ehR6xPNLZ JJhxEFWiLcfkob4lSB5KKy63TfRwzKTQ14XfEc9iDKkmRhJ2xQoH2vPlXZhNIeVX3tO8 VN3w== X-Gm-Message-State: AIVw1113WlUnMIY7VjfCgH9g83iQpD9uQOgh0G8xpKsuXQj2UbTrJmPi dJjKQPF2mnn1SQ== X-Received: by 10.99.65.196 with SMTP id o187mr3758391pga.193.1500414237120; Tue, 18 Jul 2017 14:43:57 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.43.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:43:56 -0700 (PDT) From: Rob Herring To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] base: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:42:49 -0500 Message-Id: <20170718214339.7774-9-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Greg Kroah-Hartman --- drivers/base/arch_topology.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.11.0 diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index d1c33a85059e..53f4f10fd9bb 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -144,12 +144,12 @@ int __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) } capacity_scale = max(cpu_capacity, capacity_scale); raw_capacity[cpu] = cpu_capacity; - pr_debug("cpu_capacity: %s cpu_capacity=%u (raw)\n", - cpu_node->full_name, raw_capacity[cpu]); + pr_debug("cpu_capacity: %pOF cpu_capacity=%u (raw)\n", + cpu_node, raw_capacity[cpu]); } else { if (raw_capacity) { - pr_err("cpu_capacity: missing %s raw capacity\n", - cpu_node->full_name); + pr_err("cpu_capacity: missing %pOF raw capacity\n", + cpu_node); pr_err("cpu_capacity: partial information: fallback to 1024 for all CPUs\n"); } cap_parsing_failed = true;