Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6555148imm; Mon, 27 Aug 2018 18:58:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmPr0mSZ9lifvXnlss+V+6pm0N+R3fxo/tOVhf7mr4U0Hpo4vVdeT5vzLFAyC/q1WTiRGT X-Received: by 2002:a63:df04:: with SMTP id u4-v6mr14665371pgg.434.1535421511055; Mon, 27 Aug 2018 18:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421511; cv=none; d=google.com; s=arc-20160816; b=Y5c6C3JRqzMtZmYurWi5FkAEoVhdv5KA/ijQaFSzGlxLrezbsZ6CtIBDJybvbpnp9z 4CErA+EXPw6WZw6nGCUCOq+OWcEKheeuGtA7664lFiaH56jTXmDmDid9f8lJ1Vd9VRkl 45ry5+8rVxD/5vZtTACHfWF/b0uwj56lmoEov0/PDsNiXrncImDTOE0VZDt596rnGiaE KQr6DmdfsCggzOfL1LOgOxGCr4D9G064puh3ri17Mmq6AU9iuD7XDi4p/ZKDMFJnszmM U+9VGc7PJlYAZ+38lZwvy0eAEW6z6I3BDMmof0zvmOBNEotz+Vj6E1er54MBVFyfEx1b wlPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=xzl/jEllKBAoAthtNOD/Uqw64599aiwGpdVG/EB0yBc=; b=Q8T5V7qdwAUR8N7/l1sr2yOZCl5L0WUDADbnf1mtYjN5VL8LELrg1Kc92MGOtn/Ipr 3+r9l36UQDMvpg2jL7aCjxUUrKTBQGmLv+y5tPQWiwQzbJ5Q7MXLKQbflXTwng+VA23B e6dBcD5ocS5zKLd4T0vkLgeb48qzCiLqSBoYyXhFawtsdP3b0+NSuM11KF1oLH03rwfK sZaVU1DL3Gw+aFTH0LfZv9+fbg31Mt4zTC/uWSakHd0HQFKXstqL+UPdkXOOd31SkUAt LSWPQmX6NnIcsfHfjo+wCduaFShVd+d7UbikmDI/ErmR6FCl4iXZEJ7deI5jZ85UuTQQ LirQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43-v6si926057plc.496.2018.08.27.18.58.15; Mon, 27 Aug 2018 18:58:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728146AbeH1Fob (ORCPT + 99 others); Tue, 28 Aug 2018 01:44:31 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:40602 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbeH1Foa (ORCPT ); Tue, 28 Aug 2018 01:44:30 -0400 Received: by mail-oi0-f66.google.com with SMTP id l202-v6so8887oig.7; Mon, 27 Aug 2018 18:55:14 -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:in-reply-to :references; bh=xzl/jEllKBAoAthtNOD/Uqw64599aiwGpdVG/EB0yBc=; b=LJe1oASV1cas8bBZqRenJrwgfk36kSSw16EPFxHRLwRQCWNkSj+js9djF0zweGrAJQ z6ExwonCELtkuJ1RsYpe0G7u4ZMMiKLxqyFU8ZayiADTrORy4Iqc8zSYknF4wtpJ/H4C jPEgwGV8h3W5u70Gfuwu8dMz5cAMF86SCmh1EiP+AHjerrz1U9GjZdCSLUxRbA4inSMl XmcXlkPWNO5fOnkAURC1kK+6kZb2tCaiFKRSc5SkNM0nPMdbTFHZCC1D7My5fcBRLR47 Wo8YsyFQsC8K5MbdGht6JK3xtBKn1vdom8YZJS6MqrXPHP07jlwJHcY3CpIwT0zHlEjz vHOQ== X-Gm-Message-State: APzg51CodA1csc8JkvOnQ3uIe4XoaGG31408zXKnfBbZW+IXZ8kf1VzJ xHA+hyGcfz0UZgrbcivjX2Eujzg= X-Received: by 2002:aca:ef87:: with SMTP id n129-v6mr1137519oih.161.1535421313947; Mon, 27 Aug 2018 18:55:13 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id n71-v6sm1652696oig.48.2018.08.27.18.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:55:13 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Zhang Rui , Eduardo Valentin , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH] thermal: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:46 -0500 Message-Id: <20180828015252.28511-45-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828015252.28511-1-robh@kernel.org> References: <20180828015252.28511-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: linux-pm@vger.kernel.org Signed-off-by: Rob Herring --- drivers/thermal/of-thermal.c | 10 +++++----- drivers/thermal/qoriq_thermal.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 977a8307fbb1..e201ae1c382f 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -483,8 +483,8 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, if (sensor_specs.args_count >= 1) { id = sensor_specs.args[0]; WARN(sensor_specs.args_count > 1, - "%s: too many cells in sensor specifier %d\n", - sensor_specs.np->name, sensor_specs.args_count); + "%pOFn: too many cells in sensor specifier %d\n", + sensor_specs.np, sensor_specs.args_count); } else { id = 0; } @@ -960,8 +960,8 @@ int __init of_parse_thermal_zones(void) tz = thermal_of_build_thermal_zone(child); if (IS_ERR(tz)) { - pr_err("failed to build thermal zone %s: %ld\n", - child->name, + pr_err("failed to build thermal zone %pOFn: %ld\n", + child, PTR_ERR(tz)); continue; } @@ -995,7 +995,7 @@ int __init of_parse_thermal_zones(void) tz->passive_delay, tz->polling_delay); if (IS_ERR(zone)) { - pr_err("Failed to build %s zone %ld\n", child->name, + pr_err("Failed to build %pOFn zone %ld\n", child, PTR_ERR(zone)); kfree(tzp); kfree(ops); diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index c866cc165960..1fa132fc316b 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -129,8 +129,8 @@ static int qoriq_tmu_get_sensor_id(void) if (sensor_specs.args_count >= 1) { id = sensor_specs.args[0]; WARN(sensor_specs.args_count > 1, - "%s: too many cells in sensor specifier %d\n", - sensor_specs.np->name, sensor_specs.args_count); + "%pOFn: too many cells in sensor specifier %d\n", + sensor_specs.np, sensor_specs.args_count); } else { id = 0; } -- 2.17.1