From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753547AbbATQGA (ORCPT ); Tue, 20 Jan 2015 11:06:00 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:41471 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbbATQF6 (ORCPT ); Tue, 20 Jan 2015 11:05:58 -0500 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Pantelis Antoniou Cc: Geert Uytterhoeven , Rob Herring , Andrew Morton , Grant Likely , Randy Dunlap , "linux-doc\@vger.kernel.org" , "devicetree\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH] of: Custom printk format specifier for device node References: <1421764441-11928-1-git-send-email-pantelis.antoniou@konsulko.com> <25E49021-E94D-4DFA-AC37-1D4A3AAE9F88@konsulko.com> Date: Tue, 20 Jan 2015 16:05:54 +0000 In-Reply-To: <25E49021-E94D-4DFA-AC37-1D4A3AAE9F88@konsulko.com> (Pantelis Antoniou's message of "Tue, 20 Jan 2015 17:27:42 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pantelis Antoniou writes: > Hi Geert, > >> On Jan 20, 2015, at 17:24 , Geert Uytterhoeven wrote: >> >> On Tue, Jan 20, 2015 at 3:47 PM, Rob Herring wrote: >>>> + Examples: >>>> + >>>> + %pO /foo/bar@0 - Node full name >>>> + %pO0 /foo/bar@0 - Same as above >>>> + %pO1 /foo/bar@0[10] - Node full name + phandle >>>> + %pO2 /foo/bar@0[10:DdPB] - Node full name + phandle + node flags >>>> + D - dynamic >>>> + d - detached >>>> + P - Populated >>>> + B - Populated bus >>> >>> We should think about what else we want to print for a node. Perhaps >>> 'On' for name, 'Oc' for compatible, etc. >> >> I was just going to say "The least verbose variant is name, not full_name”. >> > > Unfortunately in the context of device tree nodes ‘name' is usually > not what you want to print to identify the node in question. ‘name’ is > usually not unique. Name and address without the full path is usually a good compromise between uniqueness (it is usually unique for memory-mapped things) and verbosity. -- Måns Rullgård mans@mansr.com