Message ID | 1460738728-20831-1-git-send-email-mike.holmes@linaro.org |
---|---|
State | Accepted |
Commit | d2ff457a07cd808131e748e493795900394e9244 |
Headers | show |
On Fri, Apr 15, 2016 at 11:45 AM, Mike Holmes <mike.holmes@linaro.org> wrote: > As we approach a production stable release and we package for > distribution inclusion, the default debug should be for the majority of > users to build a performance image rather than a debug one. > > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> > Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> > --- > configure.ac | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 9665d1d..a10e0f6 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, > ${srcdir}/doc/application-api-guide/doxygen.cfg, > ########################################################################## > # Enable/disable ODP_DEBUG_PRINT > ########################################################################## > -ODP_DEBUG_PRINT=1 > +ODP_DEBUG_PRINT=0 > AC_ARG_ENABLE([debug-print], > [ --enable-debug-print display debugging information], > - [if ! test "x$enableval" = "xyes"; then > + [if test "x$enableval" = "xyes"; then > + ODP_DEBUG_PRINT=1 > + else > ODP_DEBUG_PRINT=0 > fi]) > ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" > -- > 2.5.0 > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/lng-odp >
On Fri, Apr 15, 2016 at 1:45 PM, Mike Holmes <mike.holmes@linaro.org> wrote: > As we approach a production stable release and we package for > distribution inclusion, the default debug should be for the majority of > users to build a performance image rather than a debug one. > > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> > --- > configure.ac | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 9665d1d..a10e0f6 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, ${srcdir}/doc/application-api-guide/doxygen.cfg, > ########################################################################## > # Enable/disable ODP_DEBUG_PRINT > ########################################################################## > -ODP_DEBUG_PRINT=1 > +ODP_DEBUG_PRINT=0 > AC_ARG_ENABLE([debug-print], > [ --enable-debug-print display debugging information], > - [if ! test "x$enableval" = "xyes"; then > + [if test "x$enableval" = "xyes"; then > + ODP_DEBUG_PRINT=1 > + else > ODP_DEBUG_PRINT=0 > fi]) > ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" There is just no need for the else statemente, since the default is already 0. Same for the other patch for ODP_DEBUG. Cheers,
On 15 April 2016 at 14:11, Ricardo Salveti <ricardo.salveti@linaro.org> wrote: > On Fri, Apr 15, 2016 at 1:45 PM, Mike Holmes <mike.holmes@linaro.org> > wrote: > > As we approach a production stable release and we package for > > distribution inclusion, the default debug should be for the majority of > > users to build a performance image rather than a debug one. > > > > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> > > --- > > configure.ac | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/configure.ac b/configure.ac > > index 9665d1d..a10e0f6 100644 > > --- a/configure.ac > > +++ b/configure.ac > > @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, > ${srcdir}/doc/application-api-guide/doxygen.cfg, > > > ########################################################################## > > # Enable/disable ODP_DEBUG_PRINT > > > ########################################################################## > > -ODP_DEBUG_PRINT=1 > > +ODP_DEBUG_PRINT=0 > > AC_ARG_ENABLE([debug-print], > > [ --enable-debug-print display debugging information], > > - [if ! test "x$enableval" = "xyes"; then > > + [if test "x$enableval" = "xyes"; then > > + ODP_DEBUG_PRINT=1 > > + else > > ODP_DEBUG_PRINT=0 > > fi]) > > ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" > > There is just no need for the else statemente, since the default is > already 0. > When you change the default again as I just did from 1, you will now be safe even if you forget to change the logic here, there is no performance penalty during configure. > Same for the other patch for ODP_DEBUG. > > Cheers, > -- > Ricardo Salveti > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs "Work should be fun and collaborative, the rest follows"
On Fri, Apr 15, 2016 at 3:15 PM, Mike Holmes <mike.holmes@linaro.org> wrote: > On 15 April 2016 at 14:11, Ricardo Salveti <ricardo.salveti@linaro.org> > wrote: >> >> On Fri, Apr 15, 2016 at 1:45 PM, Mike Holmes <mike.holmes@linaro.org> >> wrote: >> > As we approach a production stable release and we package for >> > distribution inclusion, the default debug should be for the majority of >> > users to build a performance image rather than a debug one. >> > >> > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> >> > --- >> > configure.ac | 6 ++++-- >> > 1 file changed, 4 insertions(+), 2 deletions(-) >> > >> > diff --git a/configure.ac b/configure.ac >> > index 9665d1d..a10e0f6 100644 >> > --- a/configure.ac >> > +++ b/configure.ac >> > @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, >> > ${srcdir}/doc/application-api-guide/doxygen.cfg, >> > >> > ########################################################################## >> > # Enable/disable ODP_DEBUG_PRINT >> > >> > ########################################################################## >> > -ODP_DEBUG_PRINT=1 >> > +ODP_DEBUG_PRINT=0 >> > AC_ARG_ENABLE([debug-print], >> > [ --enable-debug-print display debugging information], >> > - [if ! test "x$enableval" = "xyes"; then >> > + [if test "x$enableval" = "xyes"; then >> > + ODP_DEBUG_PRINT=1 >> > + else >> > ODP_DEBUG_PRINT=0 >> > fi]) >> > ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" >> >> There is just no need for the else statemente, since the default is >> already 0. > > > When you change the default again as I just did from 1, you will now be safe > even if you forget to change the logic here, there is no performance penalty > during configure. That's fine, thanks! Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Merged, Maxim. -------- Forwarded Message -------- Subject: Re: [lng-odp] [PATCH] configure: default ODP_DEPUG_PRINT to false Date: Fri, 15 Apr 2016 15:19:11 -0300 From: Ricardo Salveti <ricardo.salveti@linaro.org> To: Mike Holmes <mike.holmes@linaro.org> CC: LNG ODP Mailman List <lng-odp@lists.linaro.org> On Fri, Apr 15, 2016 at 3:15 PM, Mike Holmes <mike.holmes@linaro.org> wrote: > On 15 April 2016 at 14:11, Ricardo Salveti <ricardo.salveti@linaro.org> > wrote: >> >> On Fri, Apr 15, 2016 at 1:45 PM, Mike Holmes <mike.holmes@linaro.org> >> wrote: >> > As we approach a production stable release and we package for >> > distribution inclusion, the default debug should be for the majority of >> > users to build a performance image rather than a debug one. >> > >> > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> >> > --- >> > configure.ac | 6 ++++-- >> > 1 file changed, 4 insertions(+), 2 deletions(-) >> > >> > diff --git a/configure.ac b/configure.ac >> > index 9665d1d..a10e0f6 100644 >> > --- a/configure.ac >> > +++ b/configure.ac >> > @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, >> > ${srcdir}/doc/application-api-guide/doxygen.cfg, >> > >> > ########################################################################## >> > # Enable/disable ODP_DEBUG_PRINT >> > >> > ########################################################################## >> > -ODP_DEBUG_PRINT=1 >> > +ODP_DEBUG_PRINT=0 >> > AC_ARG_ENABLE([debug-print], >> > [ --enable-debug-print display debugging information], >> > - [if ! test "x$enableval" = "xyes"; then >> > + [if test "x$enableval" = "xyes"; then >> > + ODP_DEBUG_PRINT=1 >> > + else >> > ODP_DEBUG_PRINT=0 >> > fi]) >> > ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" >> >> There is just no need for the else statemente, since the default is >> already 0. > > > When you change the default again as I just did from 1, you will now be safe > even if you forget to change the logic here, there is no performance penalty > during configure. That's fine, thanks! Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
diff --git a/configure.ac b/configure.ac index 9665d1d..a10e0f6 100644 --- a/configure.ac +++ b/configure.ac @@ -156,10 +156,12 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, ${srcdir}/doc/application-api-guide/doxygen.cfg, ########################################################################## # Enable/disable ODP_DEBUG_PRINT ########################################################################## -ODP_DEBUG_PRINT=1 +ODP_DEBUG_PRINT=0 AC_ARG_ENABLE([debug-print], [ --enable-debug-print display debugging information], - [if ! test "x$enableval" = "xyes"; then + [if test "x$enableval" = "xyes"; then + ODP_DEBUG_PRINT=1 + else ODP_DEBUG_PRINT=0 fi]) ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT"
As we approach a production stable release and we package for distribution inclusion, the default debug should be for the majority of users to build a performance image rather than a debug one. Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)