瀏覽代碼

avoid 'format not a string literal and no format arguments' warnings (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57354 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 11 年之前
父節點
當前提交
8a6b872d80
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/db/dbmi_client/copy_tab.c

+ 3 - 3
lib/db/dbmi_client/copy_tab.c

@@ -212,7 +212,7 @@ static int copy_table(const char *from_drvname, const char *from_dbname,
 	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'"),
@@ -289,7 +289,7 @@ static int copy_table(const char *from_drvname, const char *from_dbname,
 	}
     }
 
-    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'"),
@@ -380,7 +380,7 @@ static int copy_table(const char *from_drvname, const char *from_dbname,
 	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));