Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1261498imm; Fri, 28 Sep 2018 15:09:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62RzcpBeAxStqOdL/D+rsaRtM9mb/4ZqKhf7mgE88cJMaS1v9Hpxy1cCNG15kcL4OGG1Cso X-Received: by 2002:a65:62d5:: with SMTP id m21-v6mr494814pgv.243.1538172577922; Fri, 28 Sep 2018 15:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538172577; cv=none; d=google.com; s=arc-20160816; b=f0sPrmqtdnlu+EZk93Qk8e5zWS6NCkoV3iwqjDX+e3sp+FbXzxdOLLPbDJW1MO+e8y PxOcupzSSNeN0vawvW8bAiET4pQmy0a6rtKhfI5IjczX8Czos9r9va4RAMl/6jy9bFDr W2MRFPTLLsjFwR9LfAmw85GwCUbpJb1ewQaIldPVxA2Lzf9jfntoCqRYwODab+2DSd5M vuYIp8tbWW5bP7oDWWHYxUH0l364udr53Os5ds4fTXhxGZo2bmAMQ7R5T78oswK5idSu INh8D2eAiedXcghumc9s7uNqd4Lo/NBrdM+ha/z8384M1S4ArKOFOAK4F1IWsbA5qPmm DQoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Fgyo57EI14dmezkwFEgX+oTUd/YWRKPoNgdrVc7HHqk=; b=GxopqlfWBoUvWJ6dSgHLkFK2mqIZ3iGoi2ux7knlklX+QuyYurgmrzPvMwfbz8gqs/ z/IHZPDdLeFPjJkxtYexLmnlMDB7t3P/bCql/GEr/cr/9hInjbEwWarMRFDjJLpUEl/z 1YOPeckQLKb6XD1ZOgz4nBpohQLiPXG96hdqf2Y/270q8J+Lycanv3r8rHrrA7ZGAtPy KEq7LJzz4wucGaKlEfbVF37fsFwm2oiq1bf1HVRVmKol7jt11j0KMXTWKHy1ayV1UDEu Msp+si7aWfH/WHjuM751Oax9hz1pI9xUqibsPfmZSFXi4yPGJdkYBPhMmtAj2SUrgTfN RxDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="THovtu/5"; 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=pass (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 37-v6si5728610plq.316.2018.09.28.15.09.22; Fri, 28 Sep 2018 15:09:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b="THovtu/5"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726547AbeI2EfD (ORCPT + 99 others); Sat, 29 Sep 2018 00:35:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:58348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbeI2EfC (ORCPT ); Sat, 29 Sep 2018 00:35:02 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 448F72082C; Fri, 28 Sep 2018 22:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538172555; bh=HNJsIfW4Zwj9YHU/6iKGze1QgCcDLZL+IOQ3QzMwOLQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=THovtu/58atNNVIcXJRAN9GK6wh1VPUg45sW17WGqSOrErP2mRLAXPp/Let9RXE+F eItgr/qz0YzZQQQHNjoxghIWo1qgcd2lA8TUh+2Xd43IUmA98GzeM+8u8fQzIAaJS6 oyXEUfJG5BnnvCk04JUaGizZSXvjAYhzKskAISZ8= Received: by mail-qt1-f170.google.com with SMTP id q41-v6so3536735qtq.10; Fri, 28 Sep 2018 15:09:15 -0700 (PDT) X-Gm-Message-State: ABuFfogvlK+/Zrd7at+nN77bglEs6KV56Kfqi6sYK5sa3pWArM25wJsO LJhlQZNkn3/iezXZcr3V8pJtApVxf27fAA9PwA== X-Received: by 2002:aed:3983:: with SMTP id m3-v6mr484695qte.164.1538172554449; Fri, 28 Sep 2018 15:09:14 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-46-robh@kernel.org> In-Reply-To: <20180828015252.28511-46-robh@kernel.org> From: Rob Herring Date: Fri, 28 Sep 2018 17:09:03 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tty: Convert to using %pOFn instead of device_node.name To: "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman Cc: Jiri Slaby , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "open list:SERIAL DRIVERS" , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 27, 2018 at 8:55 PM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: linux-serial@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Rob Herring > --- > drivers/tty/ehv_bytechan.c | 12 ++++++------ > drivers/tty/serial/cpm_uart/cpm_uart_core.c | 8 ++++---- > drivers/tty/serial/pmac_zilog.c | 4 ++-- > 3 files changed, 12 insertions(+), 12 deletions(-) Hey Greg, Is this still in your queue? Maybe you've just been extra busy lately. ;) Rob > > diff --git a/drivers/tty/ehv_bytechan.c b/drivers/tty/ehv_bytechan.c > index eea4049b5dcc..769e0a5d1dfc 100644 > --- a/drivers/tty/ehv_bytechan.c > +++ b/drivers/tty/ehv_bytechan.c > @@ -128,8 +128,8 @@ static int find_console_handle(void) > */ > iprop = of_get_property(np, "hv-handle", NULL); > if (!iprop) { > - pr_err("ehv-bc: no 'hv-handle' property in %s node\n", > - np->name); > + pr_err("ehv-bc: no 'hv-handle' property in %pOFn node\n", > + np); > return 0; > } > stdout_bc = be32_to_cpu(*iprop); > @@ -661,8 +661,8 @@ static int ehv_bc_tty_probe(struct platform_device *pdev) > > iprop = of_get_property(np, "hv-handle", NULL); > if (!iprop) { > - dev_err(&pdev->dev, "no 'hv-handle' property in %s node\n", > - np->name); > + dev_err(&pdev->dev, "no 'hv-handle' property in %pOFn node\n", > + np); > return -ENODEV; > } > > @@ -682,8 +682,8 @@ static int ehv_bc_tty_probe(struct platform_device *pdev) > bc->rx_irq = irq_of_parse_and_map(np, 0); > bc->tx_irq = irq_of_parse_and_map(np, 1); > if ((bc->rx_irq == NO_IRQ) || (bc->tx_irq == NO_IRQ)) { > - dev_err(&pdev->dev, "no 'interrupts' property in %s node\n", > - np->name); > + dev_err(&pdev->dev, "no 'interrupts' property in %pOFn node\n", > + np); > ret = -ENODEV; > goto error; > } > diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > index 24a5f05e769b..ea7204d75022 100644 > --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c > +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > @@ -1151,8 +1151,8 @@ static int cpm_uart_init_port(struct device_node *np, > if (!pinfo->clk) { > data = of_get_property(np, "fsl,cpm-brg", &len); > if (!data || len != 4) { > - printk(KERN_ERR "CPM UART %s has no/invalid " > - "fsl,cpm-brg property.\n", np->name); > + printk(KERN_ERR "CPM UART %pOFn has no/invalid " > + "fsl,cpm-brg property.\n", np); > return -EINVAL; > } > pinfo->brg = *data; > @@ -1160,8 +1160,8 @@ static int cpm_uart_init_port(struct device_node *np, > > data = of_get_property(np, "fsl,cpm-command", &len); > if (!data || len != 4) { > - printk(KERN_ERR "CPM UART %s has no/invalid " > - "fsl,cpm-command property.\n", np->name); > + printk(KERN_ERR "CPM UART %pOFn has no/invalid " > + "fsl,cpm-command property.\n", np); > return -EINVAL; > } > pinfo->command = *data; > diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c > index 3d21790d961e..a4ec22d1f214 100644 > --- a/drivers/tty/serial/pmac_zilog.c > +++ b/drivers/tty/serial/pmac_zilog.c > @@ -1566,9 +1566,9 @@ static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match) > * to work around bugs in ancient Apple device-trees > */ > if (macio_request_resources(uap->dev, "pmac_zilog")) > - printk(KERN_WARNING "%s: Failed to request resource" > + printk(KERN_WARNING "%pOFn: Failed to request resource" > ", port still active\n", > - uap->node->name); > + uap->node); > else > uap->flags |= PMACZILOG_FLAG_RSRC_REQUESTED; > > -- > 2.17.1 >