LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Lynch <ntl@pobox.com>
To: Carl Love <cel@us.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: patch for powerpc lparcfg.c
Date: Thu, 13 Apr 2006 19:25:39 -0500	[thread overview]
Message-ID: <20060414002539.GC25138@localdomain> (raw)
In-Reply-To: <1144969793.5286.10.camel@dyn9047021119.beaverton.ibm.com>

Carl Love wrote:
> 
> I created the attached patch to print the partition name along with the
> other partition information reported in /proc/ppc64/lparcfg for the
> powerpc systems.

> diff -rauN -X /home/carll/dontdiff linux-2.6.17-rc1-git8/arch/powerpc/kernel/lparcfg.c linux-2.6.17-rc1-git8-new/arch/powerpc/kernel/lparcfg.c
> --- linux-2.6.17-rc1-git8/arch/powerpc/kernel/lparcfg.c	2006-04-13 12:25:11.000000000 -0700
> +++ linux-2.6.17-rc1-git8-new/arch/powerpc/kernel/lparcfg.c	2006-04-13 15:29:02.000000000 -0700
> @@ -360,6 +360,9 @@
>  
>  	seq_printf(m, "system_type=%s\n", model);
>  
> +	seq_printf(m, "partition_name=%s\n",
> +		   get_property(rootdn, "ibm,partition-name", NULL));
> +

Who or what is the intended consumer of this information?

You should probably check get_property's return value and print the
partition_name line only if it is non-NULL.

  reply	other threads:[~2006-04-14  0:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13 23:09 patch for powerpc lparcfg.c Carl Love
2006-04-14  0:25 ` Nathan Lynch [this message]
     [not found]   ` <1145035146.5214.16.camel@dyn9047021119.beaverton.ibm.com>
     [not found]     ` <20060414175039.GD25138@localdomain>
2006-04-15  0:16       ` Carl Love
2006-04-15 17:31         ` Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060414002539.GC25138@localdomain \
    --to=ntl@pobox.com \
    --cc=cel@us.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox