Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7208598imm; Tue, 28 Aug 2018 08:06:11 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdblp5mSfaSJHrPbtOaWcejmdC/vrM+7xS/GSSPtdWgZfXxh7jdRSADJfojVoUEA8cbDfJIx X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr1962076plo.213.1535468771828; Tue, 28 Aug 2018 08:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535468771; cv=none; d=google.com; s=arc-20160816; b=lOq78RDBjKsS7ASh5OxsC4HSOg4Br+08gOSYE69BFca16jlDlsVKnJpOd14omLtnMO IaEkLHegZnUNtZGYZep0MhUFVkZhrY7fy9AdUanQ1CFvA9bIs/zEATkyVeygChX+Pxqw PPyiK04riT9Ytmwfadx7SAE2K8j/VHstFRW3DXH1XQMBZlotrJig7/O1UmxyJuNW3O+u U5JAtFYEG8hjLVYEJFmvzZDNrVoXY7xb8NpizrlJ68Sp9THw/RaSrT9fXeV48AZ0KQG6 azIhcCZwrfJz81e3IndSxeBIaeJaqDzAyy0zZtha6ci/5xkxl0tu5018GiH++cg0cgoM noIw== 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 :arc-authentication-results; bh=MNWl7gDr0ggsd9upMbzKcuzaNLx/bgmZ4wRC07gZVjE=; b=u4LvKS5mwLLwVy8Yj6IpseIJa4+SXqv/Sx5p1HvrmlUHp55o2wt1AzMOtPRq7p8m7Z Pqd9mI/SaQqGLy8Ip0n0qMXt2jljgS+Jhmas5zuVVibKtbyNbFwtksEt1LmIs90veJOK U1CFxg+snI3bngSauHmYoDqrEw8A9AmCIZmdzIS7CYkVwYpMPRyNcbum1HKBI9PzPvEC dZuPvNwsziIjjSFYY+DHE1mo4cf2iUUrATh80vtAa2fKgorivM6E+/jF70xQ7sOf8CJu 99WN0U/HEWH9meFTmgsxKxlQqLMlz6J2cljY4qUUXjTfKuPKXKUFS4Mjb8AOMO6QXnhJ ayqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ESMfYzhu; 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 n1-v6si1175576pfe.66.2018.08.28.08.05.56; Tue, 28 Aug 2018 08:06:11 -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=ESMfYzhu; 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 S1727203AbeH1S4k (ORCPT + 99 others); Tue, 28 Aug 2018 14:56:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:34482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbeH1S4k (ORCPT ); Tue, 28 Aug 2018 14:56:40 -0400 Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) (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 BD2872087B; Tue, 28 Aug 2018 15:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535468674; bh=FBJDJgrDZj8hSHs0gy7bP4ijiRNv7XVOKCsmGExckT8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ESMfYzhuc4Lzxhzl/LFQAIKWqOyi6nUpvkpf3+laCCVxewPnx5snbCM52h68q1MB8 hy666jApZKhBsd+zdIkv5GRvxGUOBFHAAvGzRgsrdM5n+LtP2aD0qYoxB8xRnVmI0g c+igMig03MTLiDeBmkQRIRMA49IasX6kxwfmWJfw= Received: by mail-qt0-f182.google.com with SMTP id t5-v6so2057769qtn.3; Tue, 28 Aug 2018 08:04:34 -0700 (PDT) X-Gm-Message-State: APzg51C2aL6R1Exvl0+Q8aUnxqMOPmnQpuJKP46+RVvz7OZKZP3EBRjH /6MjiGtIG4OqXxa7IyyIGOYmmLWSExBw75BSow== X-Received: by 2002:ac8:148b:: with SMTP id l11-v6mr2139464qtj.27.1535468673978; Tue, 28 Aug 2018 08:04:33 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-19-robh@kernel.org> <597b1b06-e1fb-dcf1-67f4-d6685fd38cad@linux.intel.com> In-Reply-To: <597b1b06-e1fb-dcf1-67f4-d6685fd38cad@linux.intel.com> From: Rob Herring Date: Tue, 28 Aug 2018 10:04:22 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm: Convert to using %pOFn instead of device_node.name To: Maarten Lankhorst Cc: "linux-kernel@vger.kernel.org" , Gustavo Padovan , Sean Paul , David Airlie , Rob Clark , dri-devel , linux-arm-msm , freedreno 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 Tue, Aug 28, 2018 at 7:54 AM Maarten Lankhorst wrote: > > Op 28-08-18 om 03:52 schreef Rob Herring: > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > > > Cc: Gustavo Padovan > > Cc: Maarten Lankhorst > > Cc: Sean Paul > > Cc: David Airlie > > Cc: Rob Clark > > Cc: dri-devel@lists.freedesktop.org > > Cc: linux-arm-msm@vger.kernel.org > > Cc: freedreno@lists.freedesktop.org > > Signed-off-by: Rob Herring > > --- > > drivers/gpu/drm/drm_modes.c | 4 ++-- > > drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +- > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c > > index 02db9ac82d7a..24a750436559 100644 > > --- a/drivers/gpu/drm/drm_modes.c > > +++ b/drivers/gpu/drm/drm_modes.c > > @@ -716,8 +716,8 @@ int of_get_drm_display_mode(struct device_node *np, > > if (bus_flags) > > drm_bus_flags_from_videomode(&vm, bus_flags); > > > > - pr_debug("%pOF: got %dx%d display mode from %s\n", > > - np, vm.hactive, vm.vactive, np->name); > > + pr_debug("%pOF: got %dx%d display mode\n", > > + np, vm.hactive, vm.vactive); > Aren't you removing it here instead of converting? Well, yes. The full path and name are already printed so the node name alone was pretty redundant. Rob