Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

Subject: Re: [PLPA users] svn:plpa r155
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2008-03-12 13:20:59


On Wed, Mar 12, 2008 at 3:40 PM, <jsquyres_at_[hidden]> wrote:
> Author: jsquyres
> Date: 2008-03-12 10:40:58 EDT (Wed, 12 Mar 2008)
> New Revision: 155
> URL: https://svn.open-mpi.org/trac/plpa/changeset/155
>
> Log:
> Protect the use of the environment variable PLPA_SYSFS_MOUNT with the
> --enable-debug configure switch. --enable-debug is enabled
> automatically if configure sees a .svn directory (but of course can be
> enabled or disabled with --enable/disable--debug, regardless of
> whether .svn is there or not).
Thanks, but...

> Modified: trunk/src/libplpa/plpa_map.c
> ==============================================================================
> --- trunk/src/libplpa/plpa_map.c (original)
> +++ trunk/src/libplpa/plpa_map.c 2008-03-12 10:40:58 EDT (Wed, 12 Mar 2008)
> @@ -394,10 +394,12 @@
> const char *sysfs_mount = "/sys";
> char *temp;
...this should be inside the #if, to prevent compiler warnings.

>
> +#if PLPA_DEBUG
> temp = getenv("PLPA_SYSFS_MOUNT");
> if (temp) {
> sysfs_mount = temp;
> }
> +#endif
>
> load_cache(sysfs_mount);
> return 0;

Bye
Bert