[GRASS-SVN] r57353 - grass/branches/develbranch_6/lib/db/dbmi_client

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 2 00:51:47 PDT 2013


Author: hamish
Date: 2013-08-02 00:51:47 -0700 (Fri, 02 Aug 2013)
New Revision: 57353

Modified:
   grass/branches/develbranch_6/lib/db/dbmi_client/copy_tab.c
Log:
avoid 'format not a string literal and no format arguments' warnings

Modified: grass/branches/develbranch_6/lib/db/dbmi_client/copy_tab.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_client/copy_tab.c	2013-08-01 21:30:50 UTC (rev 57352)
+++ grass/branches/develbranch_6/lib/db/dbmi_client/copy_tab.c	2013-08-02 07:51:47 UTC (rev 57353)
@@ -193,7 +193,7 @@
 	db_append_string(&sql, " where 0 = 1");	/* to get no data */
     }
 
-    G_debug(3, db_get_string(&sql));
+    G_debug(3, "db__copy_table: %s", db_get_string(&sql));
     if (db_open_select_cursor(from_driver, &sql, &cursor, DB_SEQUENTIAL) !=
 	DB_OK) {
 	G_warning(_("Unable to open select cursor: '%s'"),
@@ -270,7 +270,7 @@
 	}
     }
 
-    G_debug(3, db_get_string(&sql));
+    G_debug(3, "db__copy_table: %s", db_get_string(&sql));
     if (db_open_select_cursor(from_driver, &sql, &cursor, DB_SEQUENTIAL) !=
 	DB_OK) {
 	G_warning(_("Unable to open select cursor: '%s'"),
@@ -361,7 +361,7 @@
 	if (!select)
 	    continue;
 	db_append_string(&sql, ")");
-	G_debug(3, db_get_string(&sql));
+	G_debug(3, "db__copy_table: %s", db_get_string(&sql));
 	if (db_execute_immediate(to_driver, &sql) != DB_OK) {
 	    G_warning("Unable to insert new record: '%s'",
 		      db_get_string(&sql));



More information about the grass-commit mailing list