From patchwork Tue Aug 28 01:52:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 145253 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp609128ljw; Mon, 27 Aug 2018 18:54:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZtdS3s8cfMgAu8ZrFSpQ9v4tKc1bvHZ/9TRakiCeZ+VHd1oSt/mJ7ke5eelgh7A/GN9dJt X-Received: by 2002:a17:902:7e06:: with SMTP id b6-v6mr15711477plm.230.1535421260823; Mon, 27 Aug 2018 18:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421260; cv=none; d=google.com; s=arc-20160816; b=eNii3WrGnWW3HMy9jXY8bZccQMWgWG8/+jUivOKSi+HVhtn+cnHD/xKQ39zj1nphJE Arme64pHkgsYFCo+NqlWD+V51EhOyvxJEJIOHLyYaDRsY+XAMnZWeqn9sn0XcvymbLqN EUIoGgoyst713g/U/P7ae/yc9dlY8uhlWr/68BilJ4n+8jTNCjxMDxKeYKbawZRfBRqq OrNdTjB0lqdXU6TR+2upELwfOZin6c+s2Pz+UlTT0eO9LDJVRq4P8EIRBg9VDQG1EluJ gONTFfyDZrPg1BaY/JKNr2Yb+LySAckzXD5bSmj02XHL26osbBgGded2nEfLAKH+dvdw qtVQ== 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=hErohiAO5ZceD9Qr7QOcf9gK+QVsa4hua5KEImGBF6Y=; b=mJ3lxveMVhnwGlHdTmC+TZkoHbfgrv/PvkTPdAJ6Azt3EaFvIdDVuuutnwno451WQc eFrKtmRgO8YMhjHyrQ00H0pQqDFg9yggNUZ8gbNbqMxtk9UOOSMWT7tY+SR8R5jO9sCV fdB5ohlH5q3dLdpEEGwSjzcrYB5R31BKZL6f8euZyN8fi6gWQXOkJEgTQ4nYZ2JxPu7q 8h5xvicY/itlOJ1kXsdXWdqrGgzaMZS/A58Ji6d4X0tAXFNGIK+lu4mXREzLJyvowT1h h+fWuLDtiHeypYf7vk73DRigW1uhQVnimeLCNYTjD3BBTRS9onb4u2b+/CN7LBlUp2zy ie3Q== 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 h20-v6si841696pgh.573.2018.08.27.18.54.20; Mon, 27 Aug 2018 18:54:20 -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 S1727707AbeH1Fnd (ORCPT + 32 others); Tue, 28 Aug 2018 01:43:33 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:45858 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727333AbeH1FmS (ORCPT ); Tue, 28 Aug 2018 01:42:18 -0400 Received: by mail-oi0-f68.google.com with SMTP id t68-v6so1692247oie.12 for ; Mon, 27 Aug 2018 18:53:04 -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=hErohiAO5ZceD9Qr7QOcf9gK+QVsa4hua5KEImGBF6Y=; b=iekDPeJDVyEPIakeg86FRy2Yb7rrT/4klEeL9HR9KeuUAE99+GXlK4J2IDb7za/l2Q if8hu5t5aT5I4wrfet5WlMGsUPexd0CdH//sIxDjOwc0cVyjZWIC5oyCngE7xRTFdKNc xywyS4G9rkvuq+iuIMJby5oeCxMW49oBIDETq1GM3oxBpXf+4M4sgauz1MokopFnzXyO BGbOYJFT8QvEEH+I5tB1hDfy+eBNVQeMMz5szIkAvpLeRMVeprhUvYqjIBrZAs7rIXBQ RAJygr5w8gz0+LPMY1QFgtVhYf6odxClrvRySOXJ1oBhhwI1rCkxIO11VzTYVlI0qw/S eOXw== X-Gm-Message-State: APzg51ACmwCORWLukl/uNQVjNd5ATpiTyAeywk2aaGajhcSI7WLF9LXV uGykGo5Wb4lKbXCcumyYJCm36i0= X-Received: by 2002:a54:448b:: with SMTP id v11-v6mr1168018oiv.208.1535421183532; Mon, 27 Aug 2018 18:53:03 -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.53.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:53:02 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Stuart Yoder , Laurentiu Tudor Subject: [PATCH] bus: fsl-mc: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:11 -0500 Message-Id: <20180828015252.28511-10-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: Stuart Yoder Cc: Laurentiu Tudor Signed-off-by: Rob Herring --- drivers/bus/fsl-mc/fsl-mc-bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c index 5d8266c6571f..85a567c987cc 100644 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c @@ -693,8 +693,8 @@ static int parse_mc_ranges(struct device *dev, *ranges_start = of_get_property(mc_node, "ranges", &ranges_len); if (!(*ranges_start) || !ranges_len) { dev_warn(dev, - "missing or empty ranges property for device tree node '%s'\n", - mc_node->name); + "missing or empty ranges property for device tree node '%pOFn'\n", + mc_node); return 0; } @@ -717,7 +717,7 @@ static int parse_mc_ranges(struct device *dev, tuple_len = range_tuple_cell_count * sizeof(__be32); if (ranges_len % tuple_len != 0) { - dev_err(dev, "malformed ranges property '%s'\n", mc_node->name); + dev_err(dev, "malformed ranges property '%pOFn'\n", mc_node); return -EINVAL; }