From: Sandro Santilli Date: Mon, 7 Apr 2014 14:39:56 +0000 (+0000) Subject: Re-add printing return from puts with POSTGIS_DEBUG_LEVEL defined X-Git-Tag: 2.2.0rc1~1153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ffdd8c09f841ada1306205e5c3f58f64dba70d1;p=postgis Re-add printing return from puts with POSTGIS_DEBUG_LEVEL defined git-svn-id: http://svn.osgeo.org/postgis/trunk@12429 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/pgsql2shp-core.c b/loader/pgsql2shp-core.c index e681fa631..fc109d36b 100644 --- a/loader/pgsql2shp-core.c +++ b/loader/pgsql2shp-core.c @@ -833,8 +833,13 @@ projFileCreate(SHPDUMPERSTATE *state) { return 0; } - fputs (srtext, fp); - LWDEBUGF(3, "\n result proj SRText is %s .\n", srtext); + { +#if POSTGIS_DEBUG_LEVEL > 0 + int result = +#endif + fputs (srtext,fp); + LWDEBUGF(3, "\n result %d proj SRText is %s .\n", result, srtext); + } fclose( fp ); free( pszFullname ); }