]> granicus.if.org Git - postgis/commitdiff
Re-add printing return from puts with POSTGIS_DEBUG_LEVEL defined
authorSandro Santilli <strk@keybit.net>
Mon, 7 Apr 2014 14:39:56 +0000 (14:39 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 7 Apr 2014 14:39:56 +0000 (14:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12429 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index e681fa6318689c85f050b57473f3ad150240a2e3..fc109d36bfb178bcb3c254540d08d12ff90d50a3 100644 (file)
@@ -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 );
                        }