Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7065349imm; Tue, 28 Aug 2018 05:59:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbwgK+P+vm4i2xCWEQ66nWJXFK5iyc6vTGrpG5ksHCunCiESwCZRtKHIIE6hpdEQ6iD3wLP X-Received: by 2002:a62:1605:: with SMTP id 5-v6mr1497789pfw.11.1535461139942; Tue, 28 Aug 2018 05:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535461139; cv=none; d=google.com; s=arc-20160816; b=Es5Nr0bDiEBcX9bdamaxkbj6UgSFBy2VgZ2yBmywFT4xY33rQs30aLWqx+jzkDkw6v w77Y5nAVNmSd9EFXH9yf/cOaqguKLSUJlyUPOCfgYPAI2YN7f5Ke+lwCwAUTH02E5/Pj a/GaDYgeJGK87tmZGRaihXTZ3hygHE3L7vMi7VrGGcuFY0TizWWspPYI+hM9eVTMPWAW KJM1v+2YnkyuKkwzlbdh7ZwHm2KapBJszf7nC1QPsPQ7smUZ+fcgY3O28ZSMfegwZIcd NfASKmDxoMUpclSOLT+dlIdnAcnpUEOxtMH+4U+FLhg+FamPKXIo2NHAeVCM3Y8VybpY DBQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=64EC5FvrS5RFwX+hMWgb6Bu0ish4FShZ+vWXZFuccmw=; b=GsHd+27Mu+mIe7VZsnvCfRxxf4zPDXb5IQhMgyZTM/K5hfmMSvN3qrbcj1SvUVDg3k NgYG2DzhWZhJY4u22zA7m7gTlzeIw2kha4mmRKmFMxfP8STMBegEOK1sPDJ3rHZvYRAC xx6BVxsgprCFrV4lwNOhWvG8WRK1B6E/TfsLf2/FvOCdxsutdKyZq2tqXGiRjxaFe5DW ZgVzSJ1VL8+cKhX7WK8WpqWB+hRN/XOiVeppXoFnKMouszTKJHTmH3ZaRs/jk5DrDkP9 vWAfdWQhNbemznydRMJneUEBheoPsyQ3yOUM4q9ICQ5Frj7gUDbXkzAtGyME+0DhWM0Y 0iJA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si1031567pga.475.2018.08.28.05.58.44; Tue, 28 Aug 2018 05:58:59 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbeH1Qso (ORCPT + 99 others); Tue, 28 Aug 2018 12:48:44 -0400 Received: from mga04.intel.com ([192.55.52.120]:63944 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1Qso (ORCPT ); Tue, 28 Aug 2018 12:48:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2018 05:54:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,299,1531810800"; d="scan'208";a="68717077" Received: from thaataja-mobl.ger.corp.intel.com (HELO [10.252.52.91]) ([10.252.52.91]) by orsmga008.jf.intel.com with ESMTP; 28 Aug 2018 05:54:04 -0700 Subject: Re: [PATCH] drm: Convert to using %pOFn instead of device_node.name To: Rob Herring , linux-kernel@vger.kernel.org Cc: Gustavo Padovan , Sean Paul , David Airlie , Rob Clark , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-19-robh@kernel.org> From: Maarten Lankhorst Message-ID: <597b1b06-e1fb-dcf1-67f4-d6685fd38cad@linux.intel.com> Date: Tue, 28 Aug 2018 14:54:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180828015252.28511-19-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? ~Maarten > drm_mode_debug_printmodeline(dmode); > > return 0; > diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c > index c79659ca5706..23670907a29d 100644 > --- a/drivers/gpu/drm/msm/hdmi/hdmi.c > +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c > @@ -579,7 +579,7 @@ static int msm_hdmi_bind(struct device *dev, struct device *master, void *data) > hdmi_cfg = (struct hdmi_platform_config *) > of_device_get_match_data(dev); > if (!hdmi_cfg) { > - dev_err(dev, "unknown hdmi_cfg: %s\n", of_node->name); > + dev_err(dev, "unknown hdmi_cfg: %pOFn\n", of_node); > return -ENXIO; > } >