anjuta r4387 - in trunk: . libanjuta plugins/build-basic-autotools plugins/class-gen plugins/class-inheritance plugins/cvs-plugin plugins/debug-manager plugins/devhelp plugins/document-manager plugins/editor plugins/file-loader plugins/file-manager plugins/file-wizard plugins/gdb plugins/git plugins/glade plugins/gtodo plugins/language-manager plugins/language-support-cpp-java plugins/macro plugins/message-view plugins/patch plugins/profiler plugins/project-import plugins/project-manager plugins/project-wizard plugins/project-wizard/templates/anjuta-plugin-vala/src plugins/project-wizard/templates/anjuta-plugin/src plugins/run-program plugins/sample1 plugins/scratchbox plugins/search plugins/sourceview plugins/subversion plugins/symbol-browser plugins/symbol-db plugins/terminal plugins/tools plugins/valgrind src tagmanager
- From: jrliggett svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4387 - in trunk: . libanjuta plugins/build-basic-autotools plugins/class-gen plugins/class-inheritance plugins/cvs-plugin plugins/debug-manager plugins/devhelp plugins/document-manager plugins/editor plugins/file-loader plugins/file-manager plugins/file-wizard plugins/gdb plugins/git plugins/glade plugins/gtodo plugins/language-manager plugins/language-support-cpp-java plugins/macro plugins/message-view plugins/patch plugins/profiler plugins/project-import plugins/project-manager plugins/project-wizard plugins/project-wizard/templates/anjuta-plugin-vala/src plugins/project-wizard/templates/anjuta-plugin/src plugins/run-program plugins/sample1 plugins/scratchbox plugins/search plugins/sourceview plugins/subversion plugins/symbol-browser plugins/symbol-db plugins/terminal plugins/tools plugins/valgrind src tagmanager
- Date: Tue, 11 Nov 2008 00:16:39 +0000 (UTC)
Author: jrliggett
Date: Tue Nov 11 00:16:39 2008
New Revision: 4387
URL: http://svn.gnome.org/viewvc/anjuta?rev=4387&view=rev
Log:
Modify DEBUG_PRINT to print everything on one line, and use proper format strings.
#558788 â Improving debugging
Modified:
trunk/ChangeLog
trunk/libanjuta/anjuta-debug.h
trunk/libanjuta/anjuta-launcher.c
trunk/libanjuta/anjuta-plugin-manager.c
trunk/libanjuta/anjuta-shell.c
trunk/plugins/build-basic-autotools/executer.c
trunk/plugins/build-basic-autotools/plugin.c
trunk/plugins/class-gen/plugin.c
trunk/plugins/class-inheritance/class-inherit.c
trunk/plugins/class-inheritance/plugin.c
trunk/plugins/cvs-plugin/cvs-actions.c
trunk/plugins/cvs-plugin/cvs-execute.c
trunk/plugins/cvs-plugin/cvs-interface.c
trunk/plugins/cvs-plugin/plugin.c
trunk/plugins/debug-manager/debug_tree.c
trunk/plugins/debug-manager/plugin.c
trunk/plugins/debug-manager/queue.c
trunk/plugins/devhelp/plugin.c
trunk/plugins/document-manager/anjuta-docman.c
trunk/plugins/document-manager/plugin.c
trunk/plugins/editor/print.c
trunk/plugins/editor/text_editor.c
trunk/plugins/editor/text_editor_cbs.c
trunk/plugins/file-loader/plugin.c
trunk/plugins/file-manager/file-model.c
trunk/plugins/file-manager/file-view.c
trunk/plugins/file-manager/plugin.c
trunk/plugins/file-wizard/plugin.c
trunk/plugins/gdb/debugger.c
trunk/plugins/gdb/plugin.c
trunk/plugins/git/plugin.c
trunk/plugins/glade/anjuta-design-document.c
trunk/plugins/glade/plugin.c
trunk/plugins/gtodo/plugin.c
trunk/plugins/language-manager/plugin.c
trunk/plugins/language-support-cpp-java/cpp-java-utils.c
trunk/plugins/language-support-cpp-java/plugin.c
trunk/plugins/macro/macro-db.c
trunk/plugins/macro/plugin.c
trunk/plugins/message-view/message-view.c
trunk/plugins/message-view/plugin.c
trunk/plugins/patch/plugin.c
trunk/plugins/profiler/plugin.c
trunk/plugins/project-import/plugin.c
trunk/plugins/project-import/project-import.c
trunk/plugins/project-manager/plugin.c
trunk/plugins/project-wizard/druid.c
trunk/plugins/project-wizard/install.c
trunk/plugins/project-wizard/plugin.c
trunk/plugins/project-wizard/templates/anjuta-plugin-vala/src/plugin.vala
trunk/plugins/project-wizard/templates/anjuta-plugin/src/plugin.c
trunk/plugins/run-program/execute.c
trunk/plugins/run-program/plugin.c
trunk/plugins/sample1/plugin.c
trunk/plugins/scratchbox/plugin.c
trunk/plugins/search/search-replace.c
trunk/plugins/sourceview/plugin.c
trunk/plugins/sourceview/sourceview-prefs.c
trunk/plugins/sourceview/sourceview.c
trunk/plugins/subversion/plugin.c
trunk/plugins/symbol-browser/an_symbol_search.c
trunk/plugins/symbol-browser/an_symbol_view.c
trunk/plugins/symbol-browser/plugin.c
trunk/plugins/symbol-db/plugin.c
trunk/plugins/symbol-db/symbol-db-engine-iterator.c
trunk/plugins/symbol-db/symbol-db-engine.c
trunk/plugins/symbol-db/symbol-db-prefs.c
trunk/plugins/symbol-db/symbol-db-system.c
trunk/plugins/symbol-db/symbol-db-view-locals.c
trunk/plugins/symbol-db/symbol-db-view-search.c
trunk/plugins/symbol-db/symbol-db-view.c
trunk/plugins/terminal/terminal.c
trunk/plugins/tools/plugin.c
trunk/plugins/valgrind/plugin.c
trunk/plugins/valgrind/preferences.c
trunk/plugins/valgrind/vgactions.c
trunk/plugins/valgrind/vggeneralprefs.c
trunk/src/anjuta-app.c
trunk/src/anjuta.c
trunk/src/main.c
trunk/src/shell.c
trunk/tagmanager/tm_workspace.c
Modified: trunk/libanjuta/anjuta-debug.h
==============================================================================
--- trunk/libanjuta/anjuta-debug.h (original)
+++ trunk/libanjuta/anjuta-debug.h Tue Nov 11 00:16:39 2008
@@ -39,12 +39,7 @@
* messages.
*/
#if defined (DEBUG) && defined (__GNUC__) && __GNUC__ >= 3
-# define DEBUG_PRINT(...) do \
- { \
- g_debug ("%s:%d (%s)", __FILE__, __LINE__, \
- G_STRFUNC); \
- g_debug (__VA_ARGS__); \
- } while (0)
+# define DEBUG_PRINT(format, ...) g_debug ("%s:%d (%s) " format, __FILE__, __LINE__, G_STRFUNC, __VA_ARGS__)
#else
# define DEBUG_PRINT(...)
#endif
Modified: trunk/libanjuta/anjuta-launcher.c
==============================================================================
--- trunk/libanjuta/anjuta-launcher.c (original)
+++ trunk/libanjuta/anjuta-launcher.c Tue Nov 11 00:16:39 2008
@@ -288,7 +288,7 @@
g_return_if_fail (klass != NULL);
object_class = (GObjectClass *) klass;
- /* DEBUG_PRINT ("Initializing launcher class"); */
+ /* DEBUG_PRINT ("%s", "Initializing launcher class"); */
parent_class = g_type_class_peek_parent (klass);
@@ -513,7 +513,7 @@
else if (launcher->priv->stdout_is_done &&
launcher->priv->stderr_is_done)
{
- /* DEBUG_PRINT ("Child has't exited yet waiting for 200ms"); */
+ /* DEBUG_PRINT ("%s", "Child has't exited yet waiting for 200ms"); */
if (launcher->priv->completion_check_timeout >= 0)
g_source_remove (launcher->priv->completion_check_timeout);
launcher->priv->completion_check_timeout =
@@ -798,7 +798,7 @@
}
if ((condition & G_IO_ERR) || (condition & G_IO_HUP))
{
- DEBUG_PRINT ("launcher.c: STDOUT pipe closed");
+ DEBUG_PRINT ("%s", "launcher.c: STDOUT pipe closed");
launcher->priv->stdout_is_done = TRUE;
anjuta_launcher_synchronize (launcher);
ret = FALSE;
@@ -853,7 +853,7 @@
}
if ((condition & G_IO_ERR) || (condition & G_IO_HUP))
{
- DEBUG_PRINT ("launcher.c: STDERR pipe closed");
+ DEBUG_PRINT ("%s", "launcher.c: STDERR pipe closed");
launcher->priv->stderr_is_done = TRUE;
anjuta_launcher_synchronize (launcher);
ret = FALSE;
@@ -920,7 +920,7 @@
/* Do not hook up for G_IO_HUP */
if (condition & G_IO_ERR)
{
- DEBUG_PRINT ("launcher.c: PTY pipe error!");
+ DEBUG_PRINT ("%s", "launcher.c: PTY pipe error!");
ret = FALSE;
}
return ret;
@@ -1027,7 +1027,7 @@
return TRUE;
if (launcher->priv->child_has_terminated == FALSE)
{
- /* DEBUG_PRINT ("launcher: We missed the exit of the child"); */
+ /* DEBUG_PRINT ("%s", "launcher: We missed the exit of the child"); */
}
launcher->priv->completion_check_timeout = -1;
anjuta_launcher_execution_done_cleanup (launcher, TRUE);
Modified: trunk/libanjuta/anjuta-plugin-manager.c
==============================================================================
--- trunk/libanjuta/anjuta-plugin-manager.c (original)
+++ trunk/libanjuta/anjuta-plugin-manager.c Tue Nov 11 00:16:39 2008
@@ -152,7 +152,7 @@
if (dep == base_plugin)
{
*cycle = g_list_prepend (NULL, dep);
- /* DEBUG_PRINT ("%s ", anjuta_plugin_handle_get_name (dep)); */
+ /* DEBUG_PRINT ("%s", anjuta_plugin_handle_get_name (dep)); */
return TRUE;
}
else
@@ -160,7 +160,7 @@
if (collect_cycle (plugin_manager, base_plugin, dep, cycle))
{
*cycle = g_list_prepend (*cycle, dep);
- /* DEBUG_PRINT ("%s ", anjuta_plugin_handle_get_name (dep)); */
+ /* DEBUG_PRINT ("%s", anjuta_plugin_handle_get_name (dep)); */
return TRUE;
}
}
Modified: trunk/libanjuta/anjuta-shell.c
==============================================================================
--- trunk/libanjuta/anjuta-shell.c (original)
+++ trunk/libanjuta/anjuta-shell.c Tue Nov 11 00:16:39 2008
@@ -176,7 +176,7 @@
if (freeze_count <= 0)
{
/* Add all pending widgets */
- /* DEBUG_PRINT ("Thawing shell ..."); */
+ /* DEBUG_PRINT ("%s", "Thawing shell ..."); */
GQueue *queue;
queue = g_object_get_data (G_OBJECT (shell), "__widget_queue");
@@ -787,7 +787,7 @@
/* Do not allow multiple session loadings at once. Could be a trouble */
if (g_object_get_data (G_OBJECT (shell), "__session_loading"))
{
- /* DEBUG_PRINT ("A session load is requested in the middle of another!!"); */
+ /* DEBUG_PRINT ("%s", "A session load is requested in the middle of another!!"); */
return;
}
g_object_set_data (G_OBJECT (shell), "__session_loading", "1");
Modified: trunk/plugins/build-basic-autotools/executer.c
==============================================================================
--- trunk/plugins/build-basic-autotools/executer.c (original)
+++ trunk/plugins/build-basic-autotools/executer.c Tue Nov 11 00:16:39 2008
@@ -416,7 +416,7 @@
}
else
{
- DEBUG_PRINT("Missing anjuta_launcher");
+ DEBUG_PRINT("%s", "Missing anjuta_launcher");
}
}
@@ -425,7 +425,7 @@
}
else
{
- DEBUG_PRINT ("No installed terminal plugin found");
+ DEBUG_PRINT ("%s", "No installed terminal plugin found");
gnome_execute_shell (dir, cmd);
}
}
Modified: trunk/plugins/build-basic-autotools/plugin.c
==============================================================================
--- trunk/plugins/build-basic-autotools/plugin.c (original)
+++ trunk/plugins/build-basic-autotools/plugin.c Tue Nov 11 00:16:39 2008
@@ -271,7 +271,7 @@
if (strcmp (top_dir, dir) != 0)
{
- DEBUG_PRINT("Directory stack misaligned!!");
+ DEBUG_PRINT("%s", "Directory stack misaligned!!");
}
g_free (top_dir);
if (dir_stack)
@@ -963,7 +963,7 @@
static void
on_message_view_destroyed (BuildContext *context, GtkWidget *view)
{
- DEBUG_PRINT ("Destroying build context");
+ DEBUG_PRINT ("%s", "Destroying build context");
context->message_view = NULL;
build_context_destroy_view (context);
@@ -2234,7 +2234,7 @@
ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (bb_plugin)->shell, NULL);
- DEBUG_PRINT ("Updating module UI");
+ DEBUG_PRINT ("%s", "Updating module UI");
has_file = bb_plugin->current_editor_filename != NULL;
if (has_file)
@@ -2293,7 +2293,7 @@
gboolean has_makefile;
gboolean has_project;
- DEBUG_PRINT ("Updating project UI");
+ DEBUG_PRINT ("%s", "Updating project UI");
has_project = bb_plugin->project_root_dir != NULL;
has_makefile = has_project && directory_has_makefile (bb_plugin->project_build_dir);
@@ -3044,7 +3044,7 @@
static GFile*
ifile_get_file (IAnjutaFile *manager, GError **err)
{
- DEBUG_PRINT ("Unsupported operation");
+ DEBUG_PRINT ("%s", "Unsupported operation");
return NULL;
}
Modified: trunk/plugins/class-gen/plugin.c
==============================================================================
--- trunk/plugins/class-gen/plugin.c (original)
+++ trunk/plugins/class-gen/plugin.c Tue Nov 11 00:16:39 2008
@@ -82,7 +82,7 @@
{
AnjutaClassGenPlugin *cg_plugin;
- DEBUG_PRINT ("AnjutaClassGenPlugin: Activating ClassGen plugin...");
+ DEBUG_PRINT ("%s", "AnjutaClassGenPlugin: Activating ClassGen plugin...");
cg_plugin = ANJUTA_PLUGIN_CLASS_GEN (plugin);
cg_plugin->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
@@ -116,7 +116,7 @@
{
AnjutaClassGenPlugin *cg_plugin;
cg_plugin = ANJUTA_PLUGIN_CLASS_GEN (plugin);
- DEBUG_PRINT ("AnjutaClassGenPlugin: Deactivating ClassGen plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaClassGenPlugin: Deactivating ClassGen plugin ...");
/* Remove watches */
anjuta_plugin_remove_watch (plugin, cg_plugin->root_watch_id, TRUE);
Modified: trunk/plugins/class-inheritance/class-inherit.c
==============================================================================
--- trunk/plugins/class-inheritance/class-inherit.c (original)
+++ trunk/plugins/class-inheritance/class-inherit.c Tue Nov 11 00:16:39 2008
@@ -788,7 +788,7 @@
if (plugin->graph == NULL)
return;
- DEBUG_PRINT ("======== going to draw graph ========");
+ DEBUG_PRINT ("%s", "======== going to draw graph ========");
num_nodes = agnnodes (plugin->graph);
g_return_if_fail (num_nodes > 0);
@@ -976,7 +976,7 @@
NULL, TRUE, TRUE, FALSE, -1, -1, NULL);
if (!iter)
{
- DEBUG_PRINT ("class_inheritance_update_graph (): search returned no items.");
+ DEBUG_PRINT ("%s", "class_inheritance_update_graph (): search returned no items.");
return;
}
@@ -1031,7 +1031,7 @@
if ((klass_id = ianjuta_symbol_get_id (symbol, NULL)) <= 0)
{
- /*DEBUG_PRINT ("ClassInheritance: klass_id cannot be <= 0");*/
+ /*DEBUG_PRINT ("%s", "ClassInheritance: klass_id cannot be <= 0");*/
continue;
}
Modified: trunk/plugins/class-inheritance/plugin.c
==============================================================================
--- trunk/plugins/class-inheritance/plugin.c (original)
+++ trunk/plugins/class-inheritance/plugin.c Tue Nov 11 00:16:39 2008
@@ -102,7 +102,7 @@
AnjutaClassInheritance *class_inheritance;
static gboolean initialized = FALSE;
- DEBUG_PRINT ("AnjutaClassInheritance: Activating plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaClassInheritance: Activating plugin ...");
register_stock_icons (plugin);
@@ -129,7 +129,7 @@
static gboolean
deactivate_plugin (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("AnjutaClassInheritance: Dectivating plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaClassInheritance: Dectivating plugin ...");
AnjutaClassInheritance* class_inheritance;
class_inheritance = ANJUTA_PLUGIN_CLASS_INHERITANCE (plugin);
Modified: trunk/plugins/cvs-plugin/cvs-actions.c
==============================================================================
--- trunk/plugins/cvs-plugin/cvs-actions.c (original)
+++ trunk/plugins/cvs-plugin/cvs-actions.c Tue Nov 11 00:16:39 2008
@@ -61,7 +61,7 @@
gtk_widget_set_sensitive(password, TRUE);
break;
default:
- DEBUG_PRINT("Unknown CVS server type");
+ DEBUG_PRINT("%s", "Unknown CVS server type");
}
}
Modified: trunk/plugins/cvs-plugin/cvs-execute.c
==============================================================================
--- trunk/plugins/cvs-plugin/cvs-execute.c (original)
+++ trunk/plugins/cvs-plugin/cvs-execute.c Tue Nov 11 00:16:39 2008
@@ -116,7 +116,7 @@
gulong time_taken, CVSPlugin *plugin)
{
g_return_if_fail (plugin != NULL);
- /* DEBUG_PRINT ("Shuting down cvs message view"); */
+ /* DEBUG_PRINT ("%s", "Shuting down cvs message view"); */
if (status != 0)
{
Modified: trunk/plugins/cvs-plugin/cvs-interface.c
==============================================================================
--- trunk/plugins/cvs-plugin/cvs-interface.c (original)
+++ trunk/plugins/cvs-plugin/cvs-interface.c Tue Nov 11 00:16:39 2008
@@ -332,7 +332,7 @@
}
default:
{
- DEBUG_PRINT("Invalid cvs server type!");
+ DEBUG_PRINT("%s", "Invalid cvs server type!");
g_string_free (options, TRUE);
return;
}
Modified: trunk/plugins/cvs-plugin/plugin.c
==============================================================================
--- trunk/plugins/cvs-plugin/plugin.c (original)
+++ trunk/plugins/cvs-plugin/plugin.c Tue Nov 11 00:16:39 2008
@@ -252,7 +252,7 @@
bb_plugin = ANJUTA_PLUGIN_CVS (plugin);
- DEBUG_PRINT ("Project added");
+ DEBUG_PRINT ("%s", "Project added");
if (bb_plugin->project_root_dir)
g_free (bb_plugin->project_root_dir);
@@ -334,7 +334,7 @@
AnjutaUI *ui;
CVSPlugin *cvs_plugin;
- DEBUG_PRINT ("CVSPlugin: Activating CVS plugin ...");
+ DEBUG_PRINT ("%s", "CVSPlugin: Activating CVS plugin ...");
cvs_plugin = ANJUTA_PLUGIN_CVS (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -377,7 +377,7 @@
AnjutaUI *ui;
CVSPlugin *cvs_plugin;
- DEBUG_PRINT ("CVSPlugin: Dectivating CVS plugin ...");
+ DEBUG_PRINT ("%s", "CVSPlugin: Dectivating CVS plugin ...");
cvs_plugin = ANJUTA_PLUGIN_CVS (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
Modified: trunk/plugins/debug-manager/debug_tree.c
==============================================================================
--- trunk/plugins/debug-manager/debug_tree.c (original)
+++ trunk/plugins/debug-manager/debug_tree.c Tue Nov 11 00:16:39 2008
@@ -972,7 +972,7 @@
}
else
{
- DEBUG_PRINT("YOu shouldn't read this, debug_tree_add_watch");
+ DEBUG_PRINT("%s", "You shouldn't read this, debug_tree_add_watch");
if (var->value == NULL)
{
/* Get value */
Modified: trunk/plugins/debug-manager/plugin.c
==============================================================================
--- trunk/plugins/debug-manager/plugin.c (original)
+++ trunk/plugins/debug-manager/plugin.c Tue Nov 11 00:16:39 2008
@@ -368,7 +368,7 @@
GtkAction *action;
AnjutaStatus* status;
- DEBUG_PRINT ("DMA: dma_plugin_debugger_started");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_debugger_started");
ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
@@ -394,7 +394,7 @@
AnjutaUI *ui;
AnjutaStatus* status;
- DEBUG_PRINT ("DMA: dma_plugin_program_loaded");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_program_loaded");
if (this->sharedlibs == NULL)
{
@@ -423,7 +423,7 @@
AnjutaUI *ui;
AnjutaStatus* status;
- DEBUG_PRINT ("DMA: dma_plugin_program_running");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_program_running");
/* Update ui */
ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
@@ -445,7 +445,7 @@
AnjutaUI *ui;
AnjutaStatus* status;
- DEBUG_PRINT ("DMA: dma_plugin_program_broken");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_program_broken");
/* Update ui */
ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
@@ -474,7 +474,7 @@
AnjutaUI *ui;
AnjutaStatus* status;
- DEBUG_PRINT ("DMA: dma_plugin_program_unload");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_program_unload");
if (this->sharedlibs != NULL)
{
@@ -511,7 +511,7 @@
GtkAction *action;
AnjutaStatus* state;
- DEBUG_PRINT ("DMA: dma_plugin_debugger_stopped");
+ DEBUG_PRINT ("%s", "DMA: dma_plugin_debugger_stopped");
dma_plugin_program_unload (self);
@@ -1072,7 +1072,7 @@
AnjutaUI *ui;
GtkAction *action;
- DEBUG_PRINT ("DebugManagerPlugin: Activating Debug Manager plugin...");
+ DEBUG_PRINT ("%s", "DebugManagerPlugin: Activating Debug Manager plugin...");
this = ANJUTA_PLUGIN_DEBUG_MANAGER (plugin);
if (!initialized)
@@ -1170,7 +1170,7 @@
DebugManagerPlugin *this;
AnjutaUI *ui;
- DEBUG_PRINT ("DebugManagerPlugin: Deactivating Debug Manager plugin...");
+ DEBUG_PRINT ("%s", "DebugManagerPlugin: Deactivating Debug Manager plugin...");
this = ANJUTA_PLUGIN_DEBUG_MANAGER (plugin);
Modified: trunk/plugins/debug-manager/queue.c
==============================================================================
--- trunk/plugins/debug-manager/queue.c (original)
+++ trunk/plugins/debug-manager/queue.c Tue Nov 11 00:16:39 2008
@@ -230,35 +230,35 @@
/* Do nothing */
break;
case DEBUGGER_STOPPED_SIGNAL:
- DEBUG_PRINT("** emit debugger-stopped **");
+ DEBUG_PRINT("%s", "** emit debugger-stopped **");
g_signal_emit_by_name (self->plugin, "debugger-stopped", err);
break;
case DEBUGGER_STARTED_SIGNAL:
- DEBUG_PRINT("** emit debugger-started **");
+ DEBUG_PRINT("%s", "** emit debugger-started **");
g_signal_emit_by_name (self->plugin, "debugger-started");
break;
case PROGRAM_LOADED_SIGNAL:
- DEBUG_PRINT("** emit program-loaded **");
+ DEBUG_PRINT("%s", "** emit program-loaded **");
g_signal_emit_by_name (self->plugin, "program-loaded");
break;
case PROGRAM_UNLOADED_SIGNAL:
- DEBUG_PRINT("** emit program-unloaded **");
+ DEBUG_PRINT("%s", "** emit program-unloaded **");
g_signal_emit_by_name (self->plugin, "program-unloaded");
break;
case PROGRAM_STARTED_SIGNAL:
- DEBUG_PRINT("** emit program-started **");
+ DEBUG_PRINT("%s", "** emit program-started **");
g_signal_emit_by_name (self->plugin, "program-started");
break;
case PROGRAM_EXITED_SIGNAL:
- DEBUG_PRINT("** emit program-exited **");
+ DEBUG_PRINT("%s", "** emit program-exited **");
g_signal_emit_by_name (self->plugin, "program-exited");
break;
case PROGRAM_STOPPED_SIGNAL:
- DEBUG_PRINT("** emit program-stopped **");
+ DEBUG_PRINT("%s", "** emit program-stopped **");
g_signal_emit_by_name (self->plugin, "program-stopped");
break;
case PROGRAM_RUNNING_SIGNAL:
- DEBUG_PRINT("** emit program-running **");
+ DEBUG_PRINT("%s", "** emit program-running **");
g_signal_emit_by_name (self->plugin, "program-running");
break;
}
@@ -400,7 +400,7 @@
static void
dma_debugger_queue_execute (DmaDebuggerQueue *self)
{
- DEBUG_PRINT("debugger_queue_execute");
+ DEBUG_PRINT("%s", "debugger_queue_execute");
/* Check if debugger is connected to a debugger backend */
g_return_if_fail (self->debugger != NULL);
@@ -610,7 +610,7 @@
static void
on_dma_debugger_started (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: receive debugger started");
+ DEBUG_PRINT ("%s", "From debugger: receive debugger started");
dma_queue_emit_debugger_state (self, IANJUTA_DEBUGGER_STARTED, NULL);
}
@@ -630,35 +630,35 @@
static void
on_dma_program_loaded (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: receive program loaded");
+ DEBUG_PRINT ("%s", "From debugger: receive program loaded");
dma_queue_emit_debugger_state (self, IANJUTA_DEBUGGER_PROGRAM_LOADED, NULL);
}
static void
on_dma_program_running (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: debugger_program_running");
+ DEBUG_PRINT ("%s", "From debugger: debugger_program_running");
dma_queue_emit_debugger_state (self, IANJUTA_DEBUGGER_PROGRAM_RUNNING, NULL);
}
static void
on_dma_program_stopped (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: receive program stopped");
+ DEBUG_PRINT ("%s", "From debugger: receive program stopped");
dma_queue_emit_debugger_state (self, IANJUTA_DEBUGGER_PROGRAM_STOPPED, NULL);
}
static void
on_dma_program_exited (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: receive program exited");
+ DEBUG_PRINT ("%s", "From debugger: receive program exited");
dma_queue_emit_debugger_state (self, IANJUTA_DEBUGGER_PROGRAM_LOADED, NULL);
}
static void
on_dma_program_moved (DmaDebuggerQueue *self, guint pid, gint tid, gulong address, const gchar* src_path, guint line)
{
- DEBUG_PRINT ("From debugger: program moved");
+ DEBUG_PRINT ("%s", "From debugger: program moved");
self->prepend_command++;
g_signal_emit_by_name (self->plugin, "program-moved", pid, tid, address, src_path, line);
self->prepend_command--;
@@ -667,7 +667,7 @@
static void
on_dma_frame_changed (DmaDebuggerQueue *self, guint frame, gint thread)
{
- DEBUG_PRINT ("From debugger: frame changed");
+ DEBUG_PRINT ("%s", "From debugger: frame changed");
self->prepend_command++;
g_signal_emit_by_name (self->plugin, "frame-changed", frame, thread);
self->prepend_command--;
@@ -676,7 +676,7 @@
static void
on_dma_signal_received (DmaDebuggerQueue *self, const gchar* name, const gchar* description)
{
- DEBUG_PRINT ("From debugger: signal received");
+ DEBUG_PRINT ("%s", "From debugger: signal received");
self->prepend_command++;
g_signal_emit_by_name (self->plugin, "signal-received", name, description);
self->prepend_command--;
@@ -685,7 +685,7 @@
static void
on_dma_sharedlib_event (DmaDebuggerQueue *self)
{
- DEBUG_PRINT ("From debugger: shared lib event");
+ DEBUG_PRINT ("%s", "From debugger: shared lib event");
self->stop_on_sharedlib = TRUE;
dma_debugger_queue_complete (self, IANJUTA_DEBUGGER_PROGRAM_STOPPED);
self->prepend_command++;
Modified: trunk/plugins/devhelp/plugin.c
==============================================================================
--- trunk/plugins/devhelp/plugin.c (original)
+++ trunk/plugins/devhelp/plugin.c Tue Nov 11 00:16:39 2008
@@ -331,7 +331,7 @@
}
#endif
- DEBUG_PRINT ("AnjutaDevhelp: Activating AnjutaDevhelp plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaDevhelp: Activating AnjutaDevhelp plugin ...");
devhelp = ANJUTA_PLUGIN_DEVHELP (plugin);
/* Add all UI actions and merge UI */
@@ -406,7 +406,7 @@
AnjutaUI *ui;
AnjutaDevhelp* devhelp = ANJUTA_PLUGIN_DEVHELP (plugin);
- DEBUG_PRINT ("AnjutaDevhelp: Dectivating AnjutaDevhelp plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaDevhelp: Dectivating AnjutaDevhelp plugin ...");
ui = anjuta_shell_get_ui (plugin->shell, NULL);
Modified: trunk/plugins/document-manager/anjuta-docman.c
==============================================================================
--- trunk/plugins/document-manager/anjuta-docman.c (original)
+++ trunk/plugins/document-manager/anjuta-docman.c Tue Nov 11 00:16:39 2008
@@ -747,7 +747,7 @@
docman = ANJUTA_DOCMAN (obj);
docman->priv->shutingdown = TRUE;
- DEBUG_PRINT ("Disposing AnjutaDocman object");
+ DEBUG_PRINT ("%s", "Disposing AnjutaDocman object");
if (docman->priv->popup_menu)
{
gtk_widget_destroy (docman->priv->popup_menu);
@@ -782,7 +782,7 @@
{
AnjutaDocman *docman;
- DEBUG_PRINT ("Finalising AnjutaDocman object");
+ DEBUG_PRINT ("%s", "Finalising AnjutaDocman object");
docman = ANJUTA_DOCMAN (obj);
if (docman->priv)
{
Modified: trunk/plugins/document-manager/plugin.c
==============================================================================
--- trunk/plugins/document-manager/plugin.c (original)
+++ trunk/plugins/document-manager/plugin.c Tue Nov 11 00:16:39 2008
@@ -533,7 +533,7 @@
doc_plugin = ANJUTA_PLUGIN_DOCMAN (plugin);
- DEBUG_PRINT ("Project added");
+ DEBUG_PRINT ("%s", "Project added");
g_free (doc_plugin->project_name);
@@ -565,7 +565,7 @@
doc_plugin = ANJUTA_PLUGIN_DOCMAN (plugin);
- DEBUG_PRINT ("Project removed");
+ DEBUG_PRINT ("%s", "Project removed");
g_free (doc_plugin->project_name);
doc_plugin->project_name = NULL;
@@ -1159,7 +1159,7 @@
AnjutaPlugin* plugin = ANJUTA_PLUGIN (node->data);
if (!g_list_find (needed_plugins, plugin))
{
- DEBUG_PRINT ("Unloading plugin");
+ DEBUG_PRINT ("%s", "Unloading plugin");
anjuta_plugin_deactivate (plugin);
}
}
@@ -1197,7 +1197,7 @@
if (IANJUTA_IS_EDITOR_LANGUAGE (doc))
{
- DEBUG_PRINT("Beginning language support");
+ DEBUG_PRINT("%s", "Beginning language support");
AnjutaPluginManager *plugin_manager;
IAnjutaLanguage *lang_manager;
GList *new_support_plugins, *support_plugin_descs, *needed_plugins, *node;
@@ -1216,7 +1216,7 @@
NULL);
if (!language)
{
- DEBUG_PRINT ("Unloading all language support plugins");
+ DEBUG_PRINT ("%s", "Unloading all language support plugins");
/* Unload all language support plugins */
/* Copy the list because the "deactivate"-signal handler modifies
* the original list */
@@ -1674,7 +1674,7 @@
static gboolean initialized = FALSE;
GList *actions, *act;
- DEBUG_PRINT ("DocmanPlugin: Activating document manager plugin...");
+ DEBUG_PRINT ("%s", "DocmanPlugin: Activating document manager plugin...");
dplugin = ANJUTA_PLUGIN_DOCMAN (plugin);
dplugin->ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -1793,7 +1793,7 @@
AnjutaStatus *status;
GList *node;
- DEBUG_PRINT ("DocmanPlugin: Deactivating document manager plugin...");
+ DEBUG_PRINT ("%s", "DocmanPlugin: Deactivating document manager plugin...");
eplugin = ANJUTA_PLUGIN_DOCMAN (plugin);
@@ -2092,7 +2092,7 @@
static void
isavable_save_as (IAnjutaFileSavable* plugin, GFile* file, GError** e)
{
- DEBUG_PRINT("save_as: Not implemented in DocmanPlugin");
+ DEBUG_PRINT("%s", "save_as: Not implemented in DocmanPlugin");
}
static gboolean
@@ -2126,7 +2126,7 @@
static void
isavable_set_dirty(IAnjutaFileSavable* plugin, gboolean dirty, GError** e)
{
- DEBUG_PRINT("set_dirty: Not implemented in DocmanPlugin");
+ DEBUG_PRINT("%s", "set_dirty: Not implemented in DocmanPlugin");
}
static void
Modified: trunk/plugins/editor/print.c
==============================================================================
--- trunk/plugins/editor/print.c (original)
+++ trunk/plugins/editor/print.c Tue Nov 11 00:16:39 2008
@@ -609,7 +609,7 @@
gnome_print_showpage (pji->pc);
- DEBUG_PRINT ("Printing new page...");
+ DEBUG_PRINT ("%s", "Printing new page...");
pji->current_page++;
sprintf(page, "%d", pji->current_page);
Modified: trunk/plugins/editor/text_editor.c
==============================================================================
--- trunk/plugins/editor/text_editor.c (original)
+++ trunk/plugins/editor/text_editor.c Tue Nov 11 00:16:39 2008
@@ -181,13 +181,13 @@
static void
on_scintila_already_destroyed (gpointer te, GObject *obj)
{
- /* DEBUG_PRINT ("Scintilla object has been destroyed"); */
+ /* DEBUG_PRINT ("%s", "Scintilla object has been destroyed"); */
}
static void
on_te_already_destroyed (gpointer te, GObject *obj)
{
- /* DEBUG_PRINT ("TextEditor object has been destroyed"); */
+ /* DEBUG_PRINT ("%s", "TextEditor object has been destroyed"); */
}
#endif
@@ -312,7 +312,7 @@
}
gtk_widget_destroy (dlg);
te->file_modified_widget = NULL;
- /* DEBUG_PRINT ("File modified dialog responded"); */
+ /* DEBUG_PRINT ("%s", "File modified dialog responded"); */
}
static gboolean
@@ -368,7 +368,7 @@
{
TextEditor *te = TEXT_EDITOR (user_data);
- /* DEBUG_PRINT ("File changed!!!"); */
+ /* DEBUG_PRINT ("%s", "File changed!!!"); */
if (!(event_type == G_FILE_MONITOR_EVENT_CHANGED ||
event_type == G_FILE_MONITOR_EVENT_CREATED))
@@ -409,7 +409,7 @@
{
GFile *gio_uri;
GError *error = NULL;
- /* DEBUG_PRINT ("Setting up Monitor for %s", te->uri); */
+ /* DEBUG_PRINT ("%s", "Setting up Monitor for %s", te->uri); */
gio_uri = g_file_new_for_uri (te->uri);
te->monitor = g_file_monitor_file (gio_uri,
@@ -422,7 +422,7 @@
if (error != NULL)
{
- DEBUG_PRINT ("Error while setting up file monitor: %s",
+ DEBUG_PRINT ("%s", "Error while setting up file monitor: %s",
error->message);
g_error_free (error);
}
@@ -479,7 +479,7 @@
/* Apply font zoom separately */
zoom_factor = anjuta_preferences_get_int (te->preferences, TEXT_ZOOM_FACTOR);
- /* DEBUG_PRINT ("Initializing zoom factor to: %d", zoom_factor); */
+ /* DEBUG_PRINT ("%s", "Initializing zoom factor to: %d", zoom_factor); */
text_editor_set_zoom_factor (te, zoom_factor);
#ifdef DEBUG
Modified: trunk/plugins/editor/text_editor_cbs.c
==============================================================================
--- trunk/plugins/editor/text_editor_cbs.c (original)
+++ trunk/plugins/editor/text_editor_cbs.c Tue Nov 11 00:16:39 2008
@@ -49,7 +49,7 @@
{
if (aneditor_get_widget (GPOINTER_TO_INT (node->data)) == scintilla)
{
- DEBUG_PRINT ("Switching editor view ...");
+ DEBUG_PRINT ("%s", "Switching editor view ...");
te->editor_id = GPOINTER_TO_INT (node->data);
te->scintilla = aneditor_get_widget (te->editor_id);
break;
Modified: trunk/plugins/file-loader/plugin.c
==============================================================================
--- trunk/plugins/file-loader/plugin.c (original)
+++ trunk/plugins/file-loader/plugin.c Tue Nov 11 00:16:39 2008
@@ -1183,7 +1183,7 @@
loader_plugin = ANJUTA_PLUGIN_FILE_LOADER (plugin);
- DEBUG_PRINT ("AnjutaFileLoaderPlugin: Activating File Loader plugin...");
+ DEBUG_PRINT ("%s", "AnjutaFileLoaderPlugin: Activating File Loader plugin...");
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -1282,7 +1282,7 @@
loader_plugin = ANJUTA_PLUGIN_FILE_LOADER (plugin);
- DEBUG_PRINT ("AnjutaFileLoaderPlugin: Deactivating File Loader plugin...");
+ DEBUG_PRINT ("%s", "AnjutaFileLoaderPlugin: Deactivating File Loader plugin...");
/* Disconnect session */
g_signal_handlers_disconnect_by_func (G_OBJECT (plugin->shell),
Modified: trunk/plugins/file-manager/file-model.c
==============================================================================
--- trunk/plugins/file-manager/file-model.c (original)
+++ trunk/plugins/file-manager/file-model.c Tue Nov 11 00:16:39 2008
@@ -363,7 +363,7 @@
GCancellable* cancel = g_cancellable_new ();
GtkTreePath* real_path;
- DEBUG_PRINT (__FUNCTION__);
+ DEBUG_PRINT ("%s", "row_expanded");
gtk_tree_model_sort_convert_iter_to_child_iter(GTK_TREE_MODEL_SORT(sort_model),
&real_iter, iter);
Modified: trunk/plugins/file-manager/file-view.c
==============================================================================
--- trunk/plugins/file-manager/file-view.c (original)
+++ trunk/plugins/file-manager/file-view.c Tue Nov 11 00:16:39 2008
@@ -119,7 +119,7 @@
GTK_WIDGET_CLASS (file_view_parent_class)->button_press_event (widget,
event);
- DEBUG_PRINT (__FUNCTION__);
+ DEBUG_PRINT ("%s", "Button pressed");
GtkTreeSelection* selection =
gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
@@ -278,7 +278,7 @@
g_signal_emit_by_name (G_OBJECT (view), "current-file-changed",
NULL, NULL);
}
- DEBUG_PRINT ("selection_changed");
+ DEBUG_PRINT ("%s", "selection_changed");
}
static gboolean
Modified: trunk/plugins/file-manager/plugin.c
==============================================================================
--- trunk/plugins/file-manager/plugin.c (original)
+++ trunk/plugins/file-manager/plugin.c Tue Nov 11 00:16:39 2008
@@ -204,7 +204,7 @@
AnjutaFileManager *file_manager;
gint notify_id;
- DEBUG_PRINT ("AnjutaFileManager: Activating AnjutaFileManager plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaFileManager: Activating AnjutaFileManager plugin ...");
file_manager = (AnjutaFileManager*) plugin;
file_manager->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
@@ -272,7 +272,7 @@
AnjutaUI *ui;
AnjutaFileManager *file_manager;
- DEBUG_PRINT ("AnjutaFileManager: Dectivating AnjutaFileManager plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaFileManager: Dectivating AnjutaFileManager plugin ...");
file_manager = (AnjutaFileManager*) plugin;
ui = anjuta_shell_get_ui (plugin->shell, NULL);
Modified: trunk/plugins/file-wizard/plugin.c
==============================================================================
--- trunk/plugins/file-wizard/plugin.c (original)
+++ trunk/plugins/file-wizard/plugin.c Tue Nov 11 00:16:39 2008
@@ -74,7 +74,7 @@
AnjutaFileWizardPlugin *w_plugin;
static gboolean initialized = FALSE;
- DEBUG_PRINT ("AnjutaFileWizardPlugin: Activating File wizard plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaFileWizardPlugin: Activating File wizard plugin ...");
w_plugin = ANJUTA_PLUGIN_FILE_WIZARD (plugin);
w_plugin->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
Modified: trunk/plugins/gdb/debugger.c
==============================================================================
--- trunk/plugins/gdb/debugger.c (original)
+++ trunk/plugins/gdb/debugger.c Tue Nov 11 00:16:39 2008
@@ -252,7 +252,7 @@
{
const gchar* anjuta_log;
- DEBUG_PRINT ("In function: debugger_init()");
+ DEBUG_PRINT ("%s", "In function: debugger_init()");
debugger->priv = g_new0 (DebuggerPriv, 1);
@@ -520,7 +520,7 @@
static void
debugger_clear_buffers (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_clear_buffers()");
+ DEBUG_PRINT ("%s", "In function: debugger_clear_buffers()");
/* Clear the output line buffer */
g_string_assign (debugger->priv->stdo_line, "");
@@ -541,7 +541,7 @@
{
DebuggerCommand *dc;
- DEBUG_PRINT ("In function: debugger_get_next_command()");
+ DEBUG_PRINT ("%s", "In function: debugger_get_next_command()");
if (debugger->priv->cmd_queqe)
{
@@ -558,7 +558,7 @@
{
DebuggerCommand *dc;
- DEBUG_PRINT ("In function: debugger_set_next_command()");
+ DEBUG_PRINT ("%s", "In function: debugger_set_next_command()");
dc = debugger_queue_get_next_command (debugger);
if (!dc)
@@ -614,7 +614,7 @@
{
GList *node;
- DEBUG_PRINT ("In function: debugger_queue_clear()");
+ DEBUG_PRINT ("%s", "In function: debugger_queue_clear()");
node = debugger->priv->cmd_queqe;
while (node)
@@ -652,7 +652,7 @@
static void
debugger_queue_execute_command (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_queue_execute_command()");
+ DEBUG_PRINT ("%s", "In function: debugger_queue_execute_command()");
if (!debugger->priv->debugger_is_busy &&
!debugger->priv->starting &&
@@ -668,7 +668,7 @@
debugger_load_executable_finish (Debugger *debugger, const GDBMIValue *mi_results,
const GList *cli_results, GError *error)
{
- DEBUG_PRINT ("Program loaded");
+ DEBUG_PRINT ("%s", "Program loaded");
debugger->priv->prog_is_loaded = TRUE;
g_signal_emit_by_name (debugger->priv->instance, "program-loaded");
@@ -738,7 +738,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: set_working_directory()");
+ DEBUG_PRINT ("%s", "In function: set_working_directory()");
g_return_val_if_fail (IS_DEBUGGER (debugger), FALSE);
@@ -754,7 +754,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: set_environment()");
+ DEBUG_PRINT ("%s", "In function: set_environment()");
g_return_val_if_fail (IS_DEBUGGER (debugger), FALSE);
@@ -1003,7 +1003,7 @@
const gchar *chars, gpointer data)
{
Debugger *debugger = DEBUGGER (data);
- DEBUG_PRINT ("on gdb output arrived");
+ DEBUG_PRINT ("%s", "on gdb output arrived");
/* Do not emit signal when the debugger is destroyed */
if (debugger->priv->instance == NULL) return;
@@ -1029,11 +1029,11 @@
case DEBUGGER_NONE:
break;
case DEBUGGER_EXIT:
- DEBUG_PRINT ("debugger stop in handle post execution\n");
+ DEBUG_PRINT ("%s", "debugger stop in handle post execution\n");
debugger_stop (debugger);
break;
case DEBUGGER_RERUN_PROGRAM:
- DEBUG_PRINT ("debugger run in handle post execution\n");
+ DEBUG_PRINT ("%s", "debugger run in handle post execution\n");
debugger_run (debugger);
break;
default:
@@ -1318,7 +1318,7 @@
debugger->priv->current_cmd.parser (debugger, val,
debugger->priv->cli_lines, FALSE);
debugger->priv->command_output_sent = TRUE;
- DEBUG_PRINT ("In function: Sending output...");
+ DEBUG_PRINT ("%s", "In function: Sending output...");
}
if (val)
@@ -1568,7 +1568,7 @@
debugger->priv->current_cmd.parser (debugger, val,
debugger->priv->cli_lines, FALSE);
debugger->priv->command_output_sent = TRUE;
- DEBUG_PRINT ("In function: Sending output...");
+ DEBUG_PRINT ("%s", "In function: Sending output...");
}
else /* if (val) */
{
@@ -1626,7 +1626,7 @@
G_CALLBACK (on_gdb_terminated),
debugger);
- DEBUG_PRINT ("In function: gdb_terminated()");
+ DEBUG_PRINT ("%s", "In function: gdb_terminated()");
/* Clear the command queue & Buffer */
debugger_clear_buffers (debugger);
@@ -1662,7 +1662,7 @@
static void
debugger_stop_real (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_stop_real()");
+ DEBUG_PRINT ("%s", "In function: debugger_stop_real()");
/* if program is attached - detach from it before quiting */
if (debugger->priv->prog_is_attached == TRUE)
@@ -1717,7 +1717,7 @@
gboolean
debugger_abort (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_abort()");
+ DEBUG_PRINT ("%s", "In function: debugger_abort()");
/* Stop inferior */
if ((debugger->priv->prog_is_attached == FALSE) && (debugger->priv->inferior_pid != 0))
@@ -1815,7 +1815,7 @@
debugger_info_program_finish (Debugger *debugger, const GDBMIValue *mi_results,
const GList *cli_results, GError *error)
{
- DEBUG_PRINT ("In function: debugger_info_program()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_program()");
/* Hack: find message string giving inferior pid */
while (cli_results != NULL)
@@ -1879,7 +1879,7 @@
{
gchar *cmd;
- DEBUG_PRINT ("In function: debugger_start_program()");
+ DEBUG_PRINT ("%s", "In function: debugger_start_program()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == FALSE);
@@ -1931,7 +1931,7 @@
debugger_attach_process_finish (Debugger *debugger, const GDBMIValue *mi_results,
const GList *cli_results, GError *error)
{
- DEBUG_PRINT ("Program attach finished");
+ DEBUG_PRINT ("%s", "Program attach finished");
if (debugger->priv->output_callback)
{
debugger->priv->output_callback (IANJUTA_DEBUGGER_OUTPUT,
@@ -1952,7 +1952,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_attach_process_real()");
+ DEBUG_PRINT ("%s", "In function: debugger_attach_process_real()");
if (debugger->priv->output_callback)
{
@@ -1972,7 +1972,7 @@
void
debugger_attach_process (Debugger *debugger, pid_t pid)
{
- DEBUG_PRINT ("In function: debugger_attach_process()");
+ DEBUG_PRINT ("%s", "In function: debugger_attach_process()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2009,7 +2009,7 @@
void
debugger_restart_program (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_restart_program()");
+ DEBUG_PRINT ("%s", "In function: debugger_restart_program()");
g_return_if_fail (debugger->priv->prog_is_attached == FALSE);
@@ -2030,7 +2030,7 @@
void
debugger_stop_program (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_stop_program()");
+ DEBUG_PRINT ("%s", "In function: debugger_stop_program()");
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2060,7 +2060,7 @@
debugger_detach_process_finish (Debugger *debugger, const GDBMIValue *mi_results,
const GList *cli_results, GError *error)
{
- DEBUG_PRINT ("Program detach finished");
+ DEBUG_PRINT ("%s", "Program detach finished");
if (debugger->priv->output_callback)
{
debugger->priv->output_callback (IANJUTA_DEBUGGER_OUTPUT,
@@ -2078,7 +2078,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_detach_process()");
+ DEBUG_PRINT ("%s", "In function: debugger_detach_process()");
g_return_if_fail (debugger->priv->prog_is_attached == TRUE);
@@ -2097,7 +2097,7 @@
void
debugger_interrupt (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_interrupt()");
+ DEBUG_PRINT ("%s", "In function: debugger_interrupt()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2125,7 +2125,7 @@
void
debugger_run (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_run()");
+ DEBUG_PRINT ("%s", "In function: debugger_run()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2137,7 +2137,7 @@
void
debugger_step_in (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_step_in()");
+ DEBUG_PRINT ("%s", "In function: debugger_step_in()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2148,7 +2148,7 @@
void
debugger_step_over (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_step_over()");
+ DEBUG_PRINT ("%s", "In function: debugger_step_over()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2159,7 +2159,7 @@
void
debugger_step_out (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_step_out()");
+ DEBUG_PRINT ("%s", "In function: debugger_step_out()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2170,7 +2170,7 @@
void
debugger_stepi_in (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_step_in()");
+ DEBUG_PRINT ("%s", "In function: debugger_step_in()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2181,7 +2181,7 @@
void
debugger_stepi_over (Debugger *debugger)
{
- DEBUG_PRINT ("In function: debugger_step_over()");
+ DEBUG_PRINT ("%s", "In function: debugger_step_over()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2194,7 +2194,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_run_to_location()");
+ DEBUG_PRINT ("%s", "In function: debugger_run_to_location()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2210,7 +2210,7 @@
gchar *buff;
gchar *quoted_file;
- DEBUG_PRINT ("In function: debugger_run_to_position()");
+ DEBUG_PRINT ("%s", "In function: debugger_run_to_position()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2228,7 +2228,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_run_to_address()");
+ DEBUG_PRINT ("%s", "In function: debugger_run_to_address()");
g_return_if_fail (IS_DEBUGGER (debugger));
g_return_if_fail (debugger->priv->prog_is_running == TRUE);
@@ -2354,7 +2354,7 @@
gchar *buff;
gchar *quoted_file;
- DEBUG_PRINT ("In function: debugger_add_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_add_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2371,7 +2371,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_add_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_add_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2385,7 +2385,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_add_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_add_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2400,7 +2400,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_enable_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_enable_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2414,7 +2414,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_ignore_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_ignore_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2428,7 +2428,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_ignore_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_ignore_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2455,7 +2455,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_delete_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_delete_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2518,7 +2518,7 @@
void
debugger_list_breakpoint (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_list_breakpoint()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_breakpoint()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2564,7 +2564,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_print()");
+ DEBUG_PRINT ("%s", "In function: debugger_print()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2593,7 +2593,7 @@
debugger_evaluate (Debugger *debugger, const gchar* name, IAnjutaDebuggerCallback callback, gpointer user_data)
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_add_watch()");
+ DEBUG_PRINT ("%s", "In function: debugger_add_watch()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2662,7 +2662,7 @@
debugger_list_local (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_list_local()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_local()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2718,7 +2718,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_list_argument()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_argument()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2743,7 +2743,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_info_frame()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_frame()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2762,7 +2762,7 @@
void
debugger_info_signal (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_signal()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_signal()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2774,7 +2774,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_info_sharedlib()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_sharedlib()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2785,7 +2785,7 @@
void
debugger_info_args (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_args()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_args()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2795,7 +2795,7 @@
void
debugger_info_target (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_target()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_target()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2805,7 +2805,7 @@
void
debugger_info_program (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_program()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_program()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2815,7 +2815,7 @@
void
debugger_info_udot (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_udot()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_udot()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2825,7 +2825,7 @@
void
debugger_info_variables (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_info_variables()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_variables()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -2911,7 +2911,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_inspect_memory()");
+ DEBUG_PRINT ("%s", "In function: debugger_inspect_memory()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3009,7 +3009,7 @@
gchar *buff;
gulong end;
- DEBUG_PRINT ("In function: debugger_disassemble()");
+ DEBUG_PRINT ("%s", "In function: debugger_disassemble()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3188,7 +3188,7 @@
void
debugger_list_frame (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_list_frame()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_frame()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3224,7 +3224,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_set_thread()");
+ DEBUG_PRINT ("%s", "In function: debugger_set_thread()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3283,7 +3283,7 @@
void
debugger_list_thread (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_list_thread()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_thread()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3328,18 +3328,18 @@
frame = gdbmi_value_hash_lookup (mi_results, "stack");
if (frame == NULL) break;
- DEBUG_PRINT("get stack");
+ DEBUG_PRINT("%s", "get stack");
frame = gdbmi_value_list_get_nth (frame, 0);
if (frame == NULL) break;
- DEBUG_PRINT("get nth element");
+ DEBUG_PRINT("%s", "get nth element");
/*frame = gdbmi_value_hash_lookup (frame, "frame");
DEBUG_PRINT("get frame %p", frame);
if (frame == NULL) break;*/
- DEBUG_PRINT("get frame");
+ DEBUG_PRINT("%s", "get frame");
top = &top_frame;
top->thread = debugger->priv->current_thread;
@@ -3360,7 +3360,7 @@
gchar *buff;
guint orig_thread;
- DEBUG_PRINT ("In function: debugger_info_thread()");
+ DEBUG_PRINT ("%s", "In function: debugger_info_thread()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3475,7 +3475,7 @@
void
debugger_list_register (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_list_register()");
+ DEBUG_PRINT ("%s", "In function: debugger_list_register()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3485,7 +3485,7 @@
void
debugger_update_register (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: debugger_update_register()");
+ DEBUG_PRINT ("%s", "In function: debugger_update_register()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3497,7 +3497,7 @@
{
gchar *buf;
- DEBUG_PRINT ("In function: debugger_write_register()");
+ DEBUG_PRINT ("%s", "In function: debugger_write_register()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3521,7 +3521,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: debugger_set_frame()");
+ DEBUG_PRINT ("%s", "In function: debugger_set_frame()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3545,7 +3545,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: delete_variable()");
+ DEBUG_PRINT ("%s", "In function: delete_variable()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3579,7 +3579,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: evaluate_variable()");
+ DEBUG_PRINT ("%s", "In function: evaluate_variable()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3593,7 +3593,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: assign_variable()");
+ DEBUG_PRINT ("%s", "In function: assign_variable()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3666,7 +3666,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: list_variable_children()");
+ DEBUG_PRINT ("%s", "In function: list_variable_children()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3704,7 +3704,7 @@
{
gchar *buff;
- DEBUG_PRINT ("In function: create_variable()");
+ DEBUG_PRINT ("%s", "In function: create_variable()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3777,7 +3777,7 @@
void debugger_update_variable (Debugger *debugger, IAnjutaDebuggerCallback callback, gpointer user_data)
{
- DEBUG_PRINT ("In function: update_variable()");
+ DEBUG_PRINT ("%s", "In function: update_variable()");
g_return_if_fail (IS_DEBUGGER (debugger));
@@ -3815,7 +3815,7 @@
{
Debugger *debugger = DEBUGGER (obj);
- DEBUG_PRINT ("In function: debugger_shutdown()");
+ DEBUG_PRINT ("%s", "In function: debugger_shutdown()");
/* Do not emit signal when the debugger is destroyed */
debugger->priv->instance = NULL;
@@ -3859,7 +3859,7 @@
g_return_if_fail (klass != NULL);
object_class = G_OBJECT_CLASS (klass);
- DEBUG_PRINT ("Initializing debugger class");
+ DEBUG_PRINT ("%s", "Initializing debugger class");
parent_class = g_type_class_peek_parent (klass);
object_class->dispose = debugger_dispose;
@@ -3875,7 +3875,7 @@
gchar *buff;
gchar *cmd;
- DEBUG_PRINT ("In function: debugger_signal()");
+ DEBUG_PRINT ("%s", "In function: debugger_signal()");
if (debugger_is_active () == FALSE)
return;
@@ -3883,7 +3883,7 @@
return;
if (debugger.child_pid < 1)
{
- DEBUG_PRINT ("Not sending signal - pid not known\n");
+ DEBUG_PRINT ("%s", "Not sending signal - pid not known\n");
return;
}
Modified: trunk/plugins/gdb/plugin.c
==============================================================================
--- trunk/plugins/gdb/plugin.c (original)
+++ trunk/plugins/gdb/plugin.c Tue Nov 11 00:16:39 2008
@@ -75,7 +75,7 @@
static void
gdb_plugin_stop_terminal (GdbPlugin* plugin)
{
- DEBUG_PRINT ("In function: gdb_plugin_stop_terminal()");
+ DEBUG_PRINT ("%s", "In function: gdb_plugin_stop_terminal()");
if (plugin->term_pid > 0) {
kill (plugin->term_pid, SIGTERM);
@@ -240,7 +240,7 @@
{
/* GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin); */
- DEBUG_PRINT ("GDB: Activating Gdb plugin...");
+ DEBUG_PRINT ("%s", "GDB: Activating Gdb plugin...");
return TRUE;
}
@@ -250,7 +250,7 @@
{
GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
- DEBUG_PRINT ("GDB: Deactivating Gdb plugin...");
+ DEBUG_PRINT ("%s", "GDB: Deactivating Gdb plugin...");
if (this->debugger != NULL)
{
@@ -458,7 +458,7 @@
if (!debugger_stop (this->debugger))
{
- DEBUG_PRINT ("set error");
+ DEBUG_PRINT ("%s", "set error");
g_set_error (err, IANJUTA_DEBUGGER_ERROR, IANJUTA_DEBUGGER_CANCEL, "Command cancelled by user");
return FALSE;
@@ -474,7 +474,7 @@
{
GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
- DEBUG_PRINT ("idebugger abort\n");
+ DEBUG_PRINT ("%s", "idebugger abort\n");
if (!debugger_abort (this->debugger))
{
g_set_error (err, IANJUTA_DEBUGGER_ERROR, IANJUTA_DEBUGGER_CANCEL, "Command cancelled by user");
Modified: trunk/plugins/git/plugin.c
==============================================================================
--- trunk/plugins/git/plugin.c (original)
+++ trunk/plugins/git/plugin.c Tue Nov 11 00:16:39 2008
@@ -570,7 +570,7 @@
GtkAction *git_menu_action;
GtkAction *git_fm_menu_action;
- DEBUG_PRINT ("Git: Activating Git plugin ...");
+ DEBUG_PRINT ("%s", "Git: Activating Git plugin ...");
git_plugin = ANJUTA_PLUGIN_GIT (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -658,7 +658,7 @@
git_plugin = ANJUTA_PLUGIN_GIT (plugin);
- DEBUG_PRINT ("Git: Dectivating Git plugin ...");
+ DEBUG_PRINT ("%s", "Git: Dectivating Git plugin ...");
anjuta_ui_unmerge (ui, git_plugin->uiid);
anjuta_plugin_remove_watch (plugin, git_plugin->project_root_watch_id,
TRUE);
Modified: trunk/plugins/glade/anjuta-design-document.c
==============================================================================
--- trunk/plugins/glade/anjuta-design-document.c (original)
+++ trunk/plugins/glade/anjuta-design-document.c Tue Nov 11 00:16:39 2008
@@ -181,7 +181,7 @@
}
return;
}
- DEBUG_PRINT("Invalid use of ifile_savable_save!");
+ DEBUG_PRINT("%s", "Invalid use of ifile_savable_save!");
}
static void ifile_savable_save_as(IAnjutaFileSavable* ifile, GFile* file, GError **e)
Modified: trunk/plugins/glade/plugin.c
==============================================================================
--- trunk/plugins/glade/plugin.c (original)
+++ trunk/plugins/glade/plugin.c Tue Nov 11 00:16:39 2008
@@ -171,7 +171,7 @@
GtkTreeModel *model;
GtkTreeIter iter;
- DEBUG_PRINT(__FUNCTION__);
+ DEBUG_PRINT ("%s", "Destroying Document");
if (plugin->priv->destroying)
{
@@ -408,7 +408,7 @@
GtkListStore *store;
GtkCellRenderer *renderer;
- DEBUG_PRINT ("GladePlugin: Activating Glade plugin...");
+ DEBUG_PRINT ("%s", "GladePlugin: Activating Glade plugin...");
glade_plugin = ANJUTA_PLUGIN_GLADE (plugin);
@@ -523,7 +523,7 @@
priv = ANJUTA_PLUGIN_GLADE (plugin)->priv;
- DEBUG_PRINT ("GladePlugin: Dectivating Glade plugin...");
+ DEBUG_PRINT ("%s", "GladePlugin: Dectivating Glade plugin...");
/* Disconnect signals */
g_signal_handlers_disconnect_by_func (G_OBJECT (plugin->shell),
@@ -591,7 +591,7 @@
priv = plugin->priv;
priv->destroying = FALSE;
- DEBUG_PRINT ("Intializing Glade plugin");
+ DEBUG_PRINT ("%s", "Intializing Glade plugin");
}
static void
Modified: trunk/plugins/gtodo/plugin.c
==============================================================================
--- trunk/plugins/gtodo/plugin.c (original)
+++ trunk/plugins/gtodo/plugin.c Tue Nov 11 00:16:39 2008
@@ -143,7 +143,7 @@
GtkAction* hide_done;
static gboolean initialized;
- DEBUG_PRINT ("GTodoPlugin: Activating Task manager plugin ...");
+ DEBUG_PRINT ("%s", "GTodoPlugin: Activating Task manager plugin ...");
gtodo_plugin = ANJUTA_PLUGIN_GTODO (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -203,7 +203,7 @@
GTodoPlugin *gplugin = ANJUTA_PLUGIN_GTODO (plugin);
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("GTodoPlugin: Dectivating Tasks manager plugin ...");
+ DEBUG_PRINT ("%s", "GTodoPlugin: Dectivating Tasks manager plugin ...");
anjuta_plugin_remove_watch (plugin, gplugin->root_watch_id, TRUE);
Modified: trunk/plugins/language-manager/plugin.c
==============================================================================
--- trunk/plugins/language-manager/plugin.c (original)
+++ trunk/plugins/language-manager/plugin.c Tue Nov 11 00:16:39 2008
@@ -80,7 +80,7 @@
if (!g_str_equal (root->name, "languages"))
{
- DEBUG_PRINT ("Invalid languages.xml file");
+ DEBUG_PRINT ("%s", "Invalid languages.xml file");
}
for (cur_node = root->children; cur_node != NULL; cur_node = cur_node->next)
@@ -135,7 +135,7 @@
{
LanguageManager *language_manager;
- DEBUG_PRINT ("LanguageManager: Activating LanguageManager plugin ...");
+ DEBUG_PRINT ("%s", "LanguageManager: Activating LanguageManager plugin ...");
language_manager = (LanguageManager*) plugin;
load_languages(language_manager);
@@ -146,7 +146,7 @@
static gboolean
language_manager_deactivate (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("LanguageManager: Dectivating LanguageManager plugin ...");
+ DEBUG_PRINT ("%s", "LanguageManager: Dectivating LanguageManager plugin ...");
return TRUE;
}
Modified: trunk/plugins/language-support-cpp-java/cpp-java-utils.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/cpp-java-utils.c (original)
+++ trunk/plugins/language-support-cpp-java/cpp-java-utils.c Tue Nov 11 00:16:39 2008
@@ -35,7 +35,7 @@
g_return_val_if_fail (point_ch == ')' || point_ch == ']' ||
point_ch == '}', FALSE);
- /* DEBUG_PRINT ("Matching brace being"); */
+ /* DEBUG_PRINT ("%s", "Matching brace being"); */
/* Push brace */
g_string_prepend_c (braces_stack, point_ch);
@@ -52,7 +52,7 @@
if (attrib == IANJUTA_EDITOR_COMMENT || attrib == IANJUTA_EDITOR_STRING)
continue;
- /* DEBUG_PRINT ("point ch = %c", point_ch); */
+ /* DEBUG_PRINT ("%s", "point ch = %c", point_ch); */
point_ch = ianjuta_editor_cell_get_char (IANJUTA_EDITOR_CELL (iter), 0,
NULL);
if (point_ch == ')' || point_ch == ']' || point_ch == '}')
@@ -69,10 +69,10 @@
/* Bail out if there is no more in stack */
if (braces_stack->str[0] == '\0')
{
- /* DEBUG_PRINT ("Matching brace end -- found"); */
+ /* DEBUG_PRINT ("%s", "Matching brace end -- found"); */
return TRUE;
}
}
- /* DEBUG_PRINT ("Matching brace end -- not found"); */
+ /* DEBUG_PRINT ("%s", "Matching brace end -- not found"); */
return FALSE;
}
Modified: trunk/plugins/language-support-cpp-java/plugin.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/plugin.c (original)
+++ trunk/plugins/language-support-cpp-java/plugin.c Tue Nov 11 00:16:39 2008
@@ -1897,7 +1897,7 @@
lang_plugin = ANJUTA_PLUGIN_CPP_JAVA (plugin);
- DEBUG_PRINT ("AnjutaLanguageCppJavaPlugin: Activating plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaLanguageCppJavaPlugin: Activating plugin ...");
if (!initialized)
{
@@ -1942,7 +1942,7 @@
lang_plugin->action_group = NULL;
lang_plugin->uiid = 0;
- DEBUG_PRINT ("AnjutaLanguageCppJavaPlugin: Deactivated plugin.");
+ DEBUG_PRINT ("%s", "AnjutaLanguageCppJavaPlugin: Deactivated plugin.");
return TRUE;
}
Modified: trunk/plugins/macro/macro-db.c
==============================================================================
--- trunk/plugins/macro/macro-db.c (original)
+++ trunk/plugins/macro/macro-db.c Tue Nov 11 00:16:39 2008
@@ -164,7 +164,7 @@
if (parse_xml_file (&doc, &cur, PREDEFINED_MACRO_FILE))
read_macros (doc, cur, tree_store, iter_pre, TRUE);
else
- DEBUG_PRINT ("Could not read predefined macros!");
+ DEBUG_PRINT ("%s", "Could not read predefined macros!");
}
static void
@@ -177,7 +177,7 @@
if (parse_xml_file (&doc, &cur, user_file))
read_macros (doc, cur, tree_store, iter_user, FALSE);
else
- DEBUG_PRINT ("Could not read predefined macros!");
+ DEBUG_PRINT ("%s", "Could not read predefined macros!");
g_free (user_file);
}
@@ -217,7 +217,7 @@
static void
macro_db_dispose (GObject * db)
{
- DEBUG_PRINT ("Disposing MacroDB");
+ DEBUG_PRINT ("%s", "Disposing MacroDB");
macro_db_save (MACRO_DB (db));
G_OBJECT_CLASS (parent_class)->dispose (db);
}
@@ -225,7 +225,7 @@
static void
macro_db_finalize (GObject * db)
{
- DEBUG_PRINT ("Disposing MacroDB");
+ DEBUG_PRINT ("%s", "Disposing MacroDB");
macro_db_save (MACRO_DB (db));
G_OBJECT_CLASS (parent_class)->finalize (db);
}
Modified: trunk/plugins/macro/plugin.c
==============================================================================
--- trunk/plugins/macro/plugin.c (original)
+++ trunk/plugins/macro/plugin.c Tue Nov 11 00:16:39 2008
@@ -105,7 +105,7 @@
AnjutaUI *ui;
MacroPlugin *macro_plugin;
- DEBUG_PRINT ("MacroPlugin: Activating Macro plugin...");
+ DEBUG_PRINT ("%s", "MacroPlugin: Activating Macro plugin...");
macro_plugin = ANJUTA_PLUGIN_MACRO (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -135,7 +135,7 @@
{
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("MacroPlugin: Deactivating Macro plugin...");
+ DEBUG_PRINT ("%s", "MacroPlugin: Deactivating Macro plugin...");
anjuta_plugin_remove_watch (plugin,
ANJUTA_PLUGIN_MACRO (plugin)->editor_watch_id,
Modified: trunk/plugins/message-view/message-view.c
==============================================================================
--- trunk/plugins/message-view/message-view.c (original)
+++ trunk/plugins/message-view/message-view.c Tue Nov 11 00:16:39 2008
@@ -125,7 +125,7 @@
message_new (IAnjutaMessageViewType type, const gchar *summary,
const gchar *details)
{
- /* DEBUG_PRINT ("Creating message"); */
+ /* DEBUG_PRINT ("%s", "Creating message"); */
Message *message = g_new0 (Message, 1);
message->type = type;
if (summary)
@@ -144,7 +144,7 @@
static void
message_free (Message *message)
{
- /* DEBUG_PRINT ("Freeing message"); */
+ /* DEBUG_PRINT ("%s", "Freeing message"); */
g_free (message->summary);
g_free (message->details);
g_free (message);
Modified: trunk/plugins/message-view/plugin.c
==============================================================================
--- trunk/plugins/message-view/plugin.c (original)
+++ trunk/plugins/message-view/plugin.c Tue Nov 11 00:16:39 2008
@@ -184,7 +184,7 @@
MessageViewPlugin *mv_plugin;
static gboolean initialized = FALSE;
- DEBUG_PRINT ("MessageViewPlugin: Activating MessageView plugin ...");
+ DEBUG_PRINT ("%s", "MessageViewPlugin: Activating MessageView plugin ...");
mv_plugin = ANJUTA_PLUGIN_MESSAGE_VIEW (plugin);
if (!initialized)
@@ -229,7 +229,7 @@
MessageViewPlugin *mplugin;
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("MessageViewPlugin: Dectivating message view plugin ...");
+ DEBUG_PRINT ("%s", "MessageViewPlugin: Dectivating message view plugin ...");
mplugin = ANJUTA_PLUGIN_MESSAGE_VIEW (plugin);
#if 0
Modified: trunk/plugins/patch/plugin.c
==============================================================================
--- trunk/plugins/patch/plugin.c (original)
+++ trunk/plugins/patch/plugin.c Tue Nov 11 00:16:39 2008
@@ -74,7 +74,7 @@
AnjutaUI *ui;
PatchPlugin *p_plugin;
- DEBUG_PRINT ("PatchPlugin: Activating Patch plugin...");
+ DEBUG_PRINT ("%s", "PatchPlugin: Activating Patch plugin...");
p_plugin = ANJUTA_PLUGIN_PATCH (plugin);
@@ -105,7 +105,7 @@
patch_plugin_deactivate (AnjutaPlugin *plugin)
{
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("AnjutaPatchPlugin: Dectivating Patch plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaPatchPlugin: Dectivating Patch plugin ...");
anjuta_ui_unmerge (ui, ANJUTA_PLUGIN_PATCH (plugin)->uiid);
Modified: trunk/plugins/profiler/plugin.c
==============================================================================
--- trunk/plugins/profiler/plugin.c (original)
+++ trunk/plugins/profiler/plugin.c Tue Nov 11 00:16:39 2008
@@ -790,7 +790,7 @@
IAnjutaSymbolManager *symbol_manager;
IAnjutaDocumentManager *document_manager;
- DEBUG_PRINT ("Profiler: Activating Profiler plugin ...");
+ DEBUG_PRINT ("%s", "Profiler: Activating Profiler plugin ...");
profiler = PROFILER (plugin);
/* Add all UI actions and merge UI */
@@ -872,7 +872,7 @@
AnjutaUI *ui;
Profiler *profiler;
- DEBUG_PRINT ("Profiler: Dectivating Profiler plugin ...");
+ DEBUG_PRINT ("%s", "Profiler: Dectivating Profiler plugin ...");
/* Disconnect session save/load */
g_signal_handlers_disconnect_by_func (G_OBJECT (plugin->shell),
@@ -978,7 +978,7 @@
static GFile*
ifile_get_file (IAnjutaFile *manager, GError **err)
{
- DEBUG_PRINT ("Unsupported operation");
+ DEBUG_PRINT ("%s", "Unsupported operation");
return NULL;
}
Modified: trunk/plugins/project-import/plugin.c
==============================================================================
--- trunk/plugins/project-import/plugin.c (original)
+++ trunk/plugins/project-import/plugin.c Tue Nov 11 00:16:39 2008
@@ -37,7 +37,7 @@
{
AnjutaProjectImportPlugin *iplugin;
- DEBUG_PRINT ("AnjutaProjectImportPlugin: Activating Project Import Plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaProjectImportPlugin: Activating Project Import Plugin ...");
iplugin = ANJUTA_PLUGIN_PROJECT_IMPORT (plugin);
iplugin->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
Modified: trunk/plugins/project-import/project-import.c
==============================================================================
--- trunk/plugins/project-import/project-import.c (original)
+++ trunk/plugins/project-import/project-import.c Tue Nov 11 00:16:39 2008
@@ -309,7 +309,7 @@
ProjectImport *cobj;
cobj = PROJECT_IMPORT(object);
- DEBUG_PRINT ("Finalizing ProjectImport object");
+ DEBUG_PRINT ("%s", "Finalizing ProjectImport object");
if (cobj->backend_id)
g_free(cobj->backend_id);
Modified: trunk/plugins/project-manager/plugin.c
==============================================================================
--- trunk/plugins/project-manager/plugin.c (original)
+++ trunk/plugins/project-manager/plugin.c Tue Nov 11 00:16:39 2008
@@ -1193,7 +1193,7 @@
if (pm_plugin->project != NULL)
g_object_unref (pm_plugin->project);
- DEBUG_PRINT ("initializing gbf backend...\n");
+ DEBUG_PRINT ("%s", "initializing gbf backend...\n");
gbf_backend_init ();
for (l = gbf_backend_get_backends (); l; l = l->next) {
backend = l->data;
@@ -1224,7 +1224,7 @@
return;
}
- DEBUG_PRINT ("Creating new gbf project\n");
+ DEBUG_PRINT ("%s", "Creating new gbf project\n");
/* pm_plugin->project = gbf_backend_new_project (backend->id); */
if (!pm_plugin->project)
@@ -1374,7 +1374,7 @@
if (strcmp (anjuta_profile_get_name (profile), PROJECT_PROFILE_NAME) != 0)
return;
- DEBUG_PRINT ("Project profile loaded; Restoring project session");
+ DEBUG_PRINT ("%s", "Project profile loaded; Restoring project session");
/* Load gbf project */
project_manager_load_gbf (plugin);
@@ -1414,7 +1414,7 @@
if (strcmp (anjuta_profile_get_name (profile), PROJECT_PROFILE_NAME) != 0)
return;
- DEBUG_PRINT ("Project profile descoped; Saving project session");
+ DEBUG_PRINT ("%s", "Project profile descoped; Saving project session");
/* Save current project session */
g_return_if_fail (plugin->project_root_uri != NULL);
@@ -1465,7 +1465,7 @@
/* GladeXML *gxml; */
ProjectManagerPlugin *pm_plugin;
- DEBUG_PRINT ("ProjectManagerPlugin: Activating Project Manager plugin...");
+ DEBUG_PRINT ("%s", "ProjectManagerPlugin: Activating Project Manager plugin...");
if (!initialized)
register_stock_icons (plugin);
Modified: trunk/plugins/project-wizard/druid.c
==============================================================================
--- trunk/plugins/project-wizard/druid.c (original)
+++ trunk/plugins/project-wizard/druid.c Tue Nov 11 00:16:39 2008
@@ -628,7 +628,7 @@
static gboolean
on_druid_cancel (GtkWidget* window, NPWDruid* druid)
{
- DEBUG_PRINT ("Project wizard canceled");
+ DEBUG_PRINT ("%s", "Project wizard canceled");
anjuta_plugin_deactivate (ANJUTA_PLUGIN (druid->plugin));
npw_druid_free (druid);
@@ -638,7 +638,7 @@
static gboolean
on_druid_delete (GtkWidget* window, GdkEvent* event, NPWDruid* druid)
{
- DEBUG_PRINT ("Project wizard canceled");
+ DEBUG_PRINT ("%s", "Project wizard canceled");
anjuta_plugin_deactivate (ANJUTA_PLUGIN (druid->plugin));
npw_druid_free (druid);
Modified: trunk/plugins/project-wizard/install.c
==============================================================================
--- trunk/plugins/project-wizard/install.c (original)
+++ trunk/plugins/project-wizard/install.c Tue Nov 11 00:16:39 2008
@@ -289,7 +289,7 @@
}
if (this->action == NULL)
{
- DEBUG_PRINT ("Project wizard done");
+ DEBUG_PRINT ("%s", "Project wizard done");
/* The wizard could have been deactivated when loading the new
* project. Hence, the following check.
*/
Modified: trunk/plugins/project-wizard/plugin.c
==============================================================================
--- trunk/plugins/project-wizard/plugin.c (original)
+++ trunk/plugins/project-wizard/plugin.c Tue Nov 11 00:16:39 2008
@@ -76,14 +76,14 @@
static gboolean
npw_plugin_activate (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("Project Wizard Plugin: Activating project wizard plugin...");
+ DEBUG_PRINT ("%s", "Project Wizard Plugin: Activating project wizard plugin...");
return TRUE;
}
static gboolean
npw_plugin_deactivate (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("Project Wizard Plugin: Deactivating project wizard plugin...");
+ DEBUG_PRINT ("%s", "Project Wizard Plugin: Deactivating project wizard plugin...");
return TRUE;
}
Modified: trunk/plugins/project-wizard/templates/anjuta-plugin-vala/src/plugin.vala
==============================================================================
--- trunk/plugins/project-wizard/templates/anjuta-plugin-vala/src/plugin.vala (original)
+++ trunk/plugins/project-wizard/templates/anjuta-plugin-vala/src/plugin.vala Tue Nov 11 00:16:39 2008
@@ -55,7 +55,7 @@
[+ENDIF+]
public override bool activate () {
- //DEBUG_PRINT ("[+PluginClass+]: Activating [+PluginClass+] plugin ...");
+ //DEBUG_PRINT ("%s", "[+PluginClass+]: Activating [+PluginClass+] plugin ...");
[+IF (=(get "HasUI") "1") +]
/* Add all UI actions and merge UI */
var ui = shell.get_ui ();
@@ -77,7 +77,7 @@
}
public override bool deactivate () {
- //DEBUG_PRINT ("[+PluginClass+]: Dectivating [+PluginClass+] plugin ...");
+ //DEBUG_PRINT ("%s", "[+PluginClass+]: Dectivating [+PluginClass+] plugin ...");
[+IF (=(get "HasGladeFile") "1") +]
shell.remove_widget (widget);
[+ENDIF+][+IF (=(get "HasUI") "1") +]
Modified: trunk/plugins/project-wizard/templates/anjuta-plugin/src/plugin.c
==============================================================================
--- trunk/plugins/project-wizard/templates/anjuta-plugin/src/plugin.c (original)
+++ trunk/plugins/project-wizard/templates/anjuta-plugin/src/plugin.c Tue Nov 11 00:16:39 2008
@@ -71,7 +71,7 @@
[+ENDIF+]
[+PluginClass+] *[+NameCLower+];
- DEBUG_PRINT ("[+PluginClass+]: Activating [+PluginClass+] plugin ...");
+ DEBUG_PRINT ("%s", "[+PluginClass+]: Activating [+PluginClass+] plugin ...");
[+NameCLower+] = ([+PluginClass+]*) plugin;
[+IF (=(get "HasUI") "1") +]
/* Add all UI actions and merge UI */
@@ -105,7 +105,7 @@
[+IF (=(get "HasUI") "1") +]
AnjutaUI *ui;
[+ENDIF+]
- DEBUG_PRINT ("[+PluginClass+]: Dectivating [+PluginClass+] plugin ...");
+ DEBUG_PRINT ("%s", "[+PluginClass+]: Dectivating [+PluginClass+] plugin ...");
[+IF (=(get "HasGladeFile") "1") +]
anjuta_shell_remove_widget (plugin->shell, (([+PluginClass+]*)plugin)->widget,
NULL);
Modified: trunk/plugins/run-program/execute.c
==============================================================================
--- trunk/plugins/run-program/execute.c (original)
+++ trunk/plugins/run-program/execute.c Tue Nov 11 00:16:39 2008
@@ -250,7 +250,7 @@
}
else
{
- DEBUG_PRINT("Missing anjuta_launcher");
+ DEBUG_PRINT("%s", "Missing anjuta_launcher");
new_cmd = g_strdup (cmd);
}
Modified: trunk/plugins/run-program/plugin.c
==============================================================================
--- trunk/plugins/run-program/plugin.c (original)
+++ trunk/plugins/run-program/plugin.c Tue Nov 11 00:16:39 2008
@@ -251,7 +251,7 @@
RunProgramPlugin *self = ANJUTA_PLUGIN_RUN_PROGRAM (plugin);
AnjutaUI *ui;
- DEBUG_PRINT ("Run Program Plugin: Activating plugin...");
+ DEBUG_PRINT ("%s", "Run Program Plugin: Activating plugin...");
/* Connect to session signal */
g_signal_connect (plugin->shell, "save-session",
@@ -279,7 +279,7 @@
RunProgramPlugin *self = ANJUTA_PLUGIN_RUN_PROGRAM (plugin);
AnjutaUI *ui;
- DEBUG_PRINT ("Run Program Plugin: Deactivating plugin...");
+ DEBUG_PRINT ("%s", "Run Program Plugin: Deactivating plugin...");
ui = anjuta_shell_get_ui (plugin->shell, NULL);
anjuta_ui_remove_action_group (ui, self->action_group);
Modified: trunk/plugins/sample1/plugin.c
==============================================================================
--- trunk/plugins/sample1/plugin.c (original)
+++ trunk/plugins/sample1/plugin.c Tue Nov 11 00:16:39 2008
@@ -67,7 +67,7 @@
AnjutaUI *ui;
SamplePlugin *sample_plugin;
- DEBUG_PRINT ("SamplePlugin: Activating Sample plugin ...");
+ DEBUG_PRINT ("%s", "SamplePlugin: Activating Sample plugin ...");
sample_plugin = ANJUTA_PLUGIN_SAMPLE (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -91,7 +91,7 @@
sample_plugin_deactivate_plugin (AnjutaPlugin *plugin)
{
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("SamplePlugin: Dectivating Sample plugin ...");
+ DEBUG_PRINT ("%s", "SamplePlugin: Dectivating Sample plugin ...");
anjuta_shell_remove_widget (plugin->shell, ANJUTA_PLUGIN_SAMPLE (plugin)->widget,
NULL);
anjuta_ui_unmerge (ui, ANJUTA_PLUGIN_SAMPLE (plugin)->uiid);
Modified: trunk/plugins/scratchbox/plugin.c
==============================================================================
--- trunk/plugins/scratchbox/plugin.c (original)
+++ trunk/plugins/scratchbox/plugin.c Tue Nov 11 00:16:39 2008
@@ -83,7 +83,7 @@
{
ScratchboxPlugin *self = ANJUTA_PLUGIN_SCRATCHBOX (plugin);
- DEBUG_PRINT ("Scratchbox 1 Plugin: Activating plugin...");
+ DEBUG_PRINT ("%s", "Scratchbox 1 Plugin: Activating plugin...");
/* Connect to session signal */
g_signal_connect (plugin->shell, "save-session",
@@ -99,7 +99,7 @@
{
ScratchboxPlugin *self = ANJUTA_PLUGIN_SCRATCHBOX (plugin);
- DEBUG_PRINT ("Scratchbox 1 Plugin: Deactivating plugin...");
+ DEBUG_PRINT ("%s", "Scratchbox 1 Plugin: Deactivating plugin...");
g_signal_handlers_disconnect_by_func (plugin->shell, G_CALLBACK (on_session_save), self);
g_signal_handlers_disconnect_by_func (plugin->shell, G_CALLBACK (on_session_load), self);
Modified: trunk/plugins/search/search-replace.c
==============================================================================
--- trunk/plugins/search/search-replace.c (original)
+++ trunk/plugins/search/search-replace.c Tue Nov 11 00:16:39 2008
@@ -776,7 +776,7 @@
}
else
{
- DEBUG_PRINT ("sr null\n");
+ DEBUG_PRINT ("%s", "sr null\n");
}
}
Modified: trunk/plugins/sourceview/plugin.c
==============================================================================
--- trunk/plugins/sourceview/plugin.c (original)
+++ trunk/plugins/sourceview/plugin.c Tue Nov 11 00:16:39 2008
@@ -63,7 +63,7 @@
static gboolean
sourceview_plugin_activate (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("SourceviewPlugin: Activating SourceviewPlugin plugin ...");
+ DEBUG_PRINT ("%s", "SourceviewPlugin: Activating SourceviewPlugin plugin ...");
return TRUE;
}
@@ -71,7 +71,7 @@
static gboolean
sourceview_plugin_deactivate (AnjutaPlugin *plugin)
{
- DEBUG_PRINT ("SourceviewPlugin: Dectivating SourceviewPlugin plugin ...");
+ DEBUG_PRINT ("%s", "SourceviewPlugin: Dectivating SourceviewPlugin plugin ...");
return TRUE;
}
Modified: trunk/plugins/sourceview/sourceview-prefs.c
==============================================================================
--- trunk/plugins/sourceview/sourceview-prefs.c (original)
+++ trunk/plugins/sourceview/sourceview-prefs.c Tue Nov 11 00:16:39 2008
@@ -381,7 +381,7 @@
{
AnjutaPreferences* prefs = sv->priv->prefs;
GList* id;
- DEBUG_PRINT("Destroying preferences");
+ DEBUG_PRINT("%s", "Destroying preferences");
for (id = sv->priv->gconf_notify_ids; id != NULL; id = id->next)
{
anjuta_preferences_notify_remove(prefs,GPOINTER_TO_UINT(id->data));
Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c (original)
+++ trunk/plugins/sourceview/sourceview.c Tue Nov 11 00:16:39 2008
@@ -617,7 +617,7 @@
g_slice_free(SourceviewPrivate, cobj->priv);
G_OBJECT_CLASS(parent_class)->finalize(object);
- DEBUG_PRINT("=========== finalise =============");
+ DEBUG_PRINT("%s", "=========== finalise =============");
}
/* Create a new sourceview instance. If uri is valid,
@@ -653,7 +653,7 @@
else if (filename != NULL && strlen(filename) > 0)
sourceview_io_set_filename (sv->priv->io, filename);
- DEBUG_PRINT("============ Creating new editor =============");
+ DEBUG_PRINT("%s", "============ Creating new editor =============");
g_signal_emit_by_name (G_OBJECT(sv), "update-ui");
Modified: trunk/plugins/subversion/plugin.c
==============================================================================
--- trunk/plugins/subversion/plugin.c (original)
+++ trunk/plugins/subversion/plugin.c Tue Nov 11 00:16:39 2008
@@ -319,7 +319,7 @@
"ActionGroupSubversion",
"ActionSubversionResolve");
- DEBUG_PRINT ("Project added");
+ DEBUG_PRINT ("%s", "Project added");
if (bb_plugin->project_root_dir)
g_free (bb_plugin->project_root_dir);
@@ -433,7 +433,7 @@
GtkAction *revert_action;
GtkAction *resolve_action;
- DEBUG_PRINT ("Subversion: Activating Subversion plugin ...");
+ DEBUG_PRINT ("%s", "Subversion: Activating Subversion plugin ...");
subversion = ANJUTA_PLUGIN_SUBVERSION (plugin);
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -510,7 +510,7 @@
{
Subversion *subversion = ANJUTA_PLUGIN_SUBVERSION (plugin);
AnjutaUI *ui = anjuta_shell_get_ui (plugin->shell, NULL);
- DEBUG_PRINT ("Subversion: Dectivating Subversion plugin ...");
+ DEBUG_PRINT ("%s", "Subversion: Dectivating Subversion plugin ...");
anjuta_plugin_remove_watch (plugin, subversion->fm_watch_id, TRUE);
anjuta_plugin_remove_watch (plugin, subversion->project_watch_id, TRUE);
anjuta_plugin_remove_watch (plugin, subversion->editor_watch_id, TRUE);
Modified: trunk/plugins/symbol-browser/an_symbol_search.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol_search.c (original)
+++ trunk/plugins/symbol-browser/an_symbol_search.c Tue Nov 11 00:16:39 2008
@@ -116,7 +116,7 @@
AnjutaSymbolSearch *search = ANJUTA_SYMBOL_SEARCH (obj);
AnjutaSymbolSearchPriv *priv = search->priv;
- DEBUG_PRINT("Destroying symbolsearch");
+ DEBUG_PRINT("%s", "Destroying symbolsearch");
/* anjuta_symbol_view's dispose should manage it's freeing */
if (priv->model)
@@ -142,7 +142,7 @@
AnjutaSymbolSearch *search = ANJUTA_SYMBOL_SEARCH (obj);
AnjutaSymbolSearchPriv *priv = search->priv;
- DEBUG_PRINT ("Finalizing symbolsearch widget");
+ DEBUG_PRINT ("%s", "Finalizing symbolsearch widget");
g_list_foreach (priv->completion->items, (GFunc)g_free, NULL);
g_completion_free (priv->completion);
@@ -334,7 +334,7 @@
if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
{
DEBUG_PRINT
- ("an_symbol_search_on_tree_row_activate: error getting selected row");
+ ("%s", "an_symbol_search_on_tree_row_activate: error getting selected row");
return FALSE;
}
@@ -358,10 +358,10 @@
priv = search->priv;
- DEBUG_PRINT ("key_press event");
+ DEBUG_PRINT ("%s", "key_press event");
if (event->keyval == GDK_Tab)
{
- DEBUG_PRINT ("tab key pressed");
+ DEBUG_PRINT ("%s", "tab key pressed");
if (event->state & GDK_CONTROL_MASK)
{
gtk_widget_grab_focus (priv->hitlist);
@@ -381,7 +381,7 @@
AnjutaSymbolInfo *sym;
gchar *name;
- DEBUG_PRINT("enter key pressed: getting the first entry found");
+ DEBUG_PRINT("%s", "enter key pressed: getting the first entry found");
/* Get the first entry found. */
if (gtk_tree_model_get_iter_first
@@ -423,7 +423,7 @@
priv = search->priv;
- DEBUG_PRINT("Entry changed");
+ DEBUG_PRINT("%s", "Entry changed");
if (!priv->idle_filter)
{
Modified: trunk/plugins/symbol-browser/an_symbol_view.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol_view.c (original)
+++ trunk/plugins/symbol-browser/an_symbol_view.c Tue Nov 11 00:16:39 2008
@@ -350,7 +350,7 @@
if (tm_file->parent ==
TM_WORK_OBJECT (sv->priv->tm_workspace))
{
- DEBUG_PRINT ("Removing tm_file");
+ DEBUG_PRINT ("%s", "Removing tm_file");
tm_workspace_remove_object (tm_file, TRUE);
}
}
@@ -372,7 +372,7 @@
if (tm_file &&
TM_WORK_OBJECT (tm_file)->parent == sv->priv->tm_project)
{
- DEBUG_PRINT ("Removing tm_file");
+ DEBUG_PRINT ("%s", "Removing tm_file");
if (sv->priv->file_symbol_model == val)
sv->priv->file_symbol_model = NULL;
return TRUE;
@@ -444,7 +444,7 @@
if (sv->priv->symbols_need_update)
{
- DEBUG_PRINT ("Update required requested");
+ DEBUG_PRINT ("%s", "Update required requested");
g_idle_add (on_symbol_view_refresh_idle, sv);
return;
}
@@ -715,7 +715,7 @@
return;
tm_project_add_file (TM_PROJECT (sv->priv->tm_project), filename, TRUE);
- DEBUG_PRINT ("Project changed: Flagging refresh required");
+ DEBUG_PRINT ("%s", "Project changed: Flagging refresh required");
sv->priv->symbols_need_update = TRUE;
/*
@@ -746,7 +746,7 @@
tm_project_remove_object (TM_PROJECT (sv->priv->tm_project),
source_file);
- DEBUG_PRINT ("Project changed: Flagging refresh required");
+ DEBUG_PRINT ("%s", "Project changed: Flagging refresh required");
sv->priv->symbols_need_update = TRUE;
/* for (node = app->text_editor_list; node; node = g_list_next(node))
@@ -780,7 +780,7 @@
if (sv->priv->tm_workspace == NULL ||
sv->priv->tm_project == NULL ) {
- DEBUG_PRINT ("workspace or project are null");
+ DEBUG_PRINT ("%s", "workspace or project are null");
return;
}
@@ -789,7 +789,7 @@
(sv->priv->tm_workspace),
filename, FALSE);
if (tm_file == NULL) {
- DEBUG_PRINT ("tm_file is null");
+ DEBUG_PRINT ("%s", "tm_file is null");
return;
}
@@ -905,7 +905,7 @@
sv->priv->symbols_need_update = FALSE;
- DEBUG_PRINT ("Populating symbol view: Creating symbol view...");
+ DEBUG_PRINT ("%s", "Populating symbol view: Creating symbol view...");
if (!sv->priv->symbols->info.children
|| (0 == sv->priv->symbols->info.children->len))
@@ -933,14 +933,14 @@
g_return_if_fail (ANJUTA_IS_SYMBOL_VIEW (sv));
g_return_if_fail (root_dir != NULL);
- DEBUG_PRINT ("Populating symbol view: Loading tag database...");
+ DEBUG_PRINT ("%s", "Populating symbol view: Loading tag database...");
/* make sure we clear anjuta_symbol_view from previous data */
anjuta_symbol_view_clear (sv);
sv->priv->tm_project = tm_project_new (root_dir, NULL, NULL, FALSE);
- DEBUG_PRINT ("Populating symbol view: Creating symbol tree...");
+ DEBUG_PRINT ("%s", "Populating symbol view: Creating symbol tree...");
if (sv->priv->tm_project &&
sv->priv->tm_project->tags_array &&
@@ -954,7 +954,7 @@
anjuta_symbol_view_finalize (GObject * obj)
{
AnjutaSymbolView *sv = ANJUTA_SYMBOL_VIEW (obj);
- DEBUG_PRINT ("Finalizing symbolview widget");
+ DEBUG_PRINT ("%s", "Finalizing symbolview widget");
anjuta_symbol_view_clear (sv);
@@ -1272,7 +1272,7 @@
if (sv->priv->tm_project &&
TM_WORK_OBJECT (tm_file)->parent == sv->priv->tm_project)
{
- DEBUG_PRINT ("Project changed: Flagging refresh required");
+ DEBUG_PRINT ("%s", "Project changed: Flagging refresh required");
sv->priv->symbols_need_update = TRUE;
}
}
Modified: trunk/plugins/symbol-browser/plugin.c
==============================================================================
--- trunk/plugins/symbol-browser/plugin.c (original)
+++ trunk/plugins/symbol-browser/plugin.c Tue Nov 11 00:16:39 2008
@@ -630,7 +630,7 @@
/* was it the last file loaded? */
if (g_hash_table_size (sv_plugin->editor_connected) <= 0)
{
- DEBUG_PRINT ("displaying nothing...");
+ DEBUG_PRINT ("%s", "displaying nothing...");
gtk_tree_view_set_model (GTK_TREE_VIEW (sv_plugin->sl_tree),
NULL);
}
@@ -905,7 +905,7 @@
GtkActionGroup *group;
SymbolBrowserPlugin *sv_plugin;
- DEBUG_PRINT ("SymbolBrowserPlugin: Activating Symbol Manager plugin...");
+ DEBUG_PRINT ("%s", "SymbolBrowserPlugin: Activating Symbol Manager plugin...");
register_stock_icons (plugin);
@@ -1033,7 +1033,7 @@
SymbolBrowserPlugin *sv_plugin;
sv_plugin = ANJUTA_PLUGIN_SYMBOL_BROWSER (plugin);
- DEBUG_PRINT ("SymbolBrowserPlugin: Dectivating Symbol Manager plugin...");
+ DEBUG_PRINT ("%s", "SymbolBrowserPlugin: Dectivating Symbol Manager plugin...");
/* Ensure all editor cached info are released */
if (sv_plugin->editor_connected)
@@ -1231,7 +1231,7 @@
IAnjutaSymbolField info_fields,
GError **err)
{
- DEBUG_PRINT ("isymbol_manager_get_scope (): not implemented");
+ DEBUG_PRINT ("%s", "isymbol_manager_get_scope (): not implemented");
return NULL;
}
@@ -1242,7 +1242,7 @@
IAnjutaSymbolField info_fields,
GError **err)
{
- DEBUG_PRINT ("isymbol_manager_get_parent_scope (): not implemented");
+ DEBUG_PRINT ("%s", "isymbol_manager_get_parent_scope (): not implemented");
return NULL;
}
@@ -1253,7 +1253,7 @@
IAnjutaSymbolField info_fields,
GError **err)
{
- DEBUG_PRINT ("isymbol_manager_get_symbol_more_info (): not implemented");
+ DEBUG_PRINT ("%s", "isymbol_manager_get_symbol_more_info (): not implemented");
return NULL;
}
@@ -1263,7 +1263,7 @@
IAnjutaSymbolField info_fields,
GError **err)
{
- DEBUG_PRINT ("isymbol_manager_get_symbol_by_id (): not implemented");
+ DEBUG_PRINT ("%s", "isymbol_manager_get_symbol_by_id (): not implemented");
return NULL;
}
Modified: trunk/plugins/symbol-db/plugin.c
==============================================================================
--- trunk/plugins/symbol-db/plugin.c (original)
+++ trunk/plugins/symbol-db/plugin.c Tue Nov 11 00:16:39 2008
@@ -125,7 +125,7 @@
if (sdb_plugin->need_symbols_update == FALSE)
return TRUE;
- DEBUG_PRINT ("on_editor_buffer_symbols_update_timeout()");
+ DEBUG_PRINT ("%s", "on_editor_buffer_symbols_update_timeout()");
if (sdb_plugin->current_editor)
{
@@ -175,10 +175,10 @@
on_editor_destroy (SymbolDBPlugin *sdb_plugin, IAnjutaEditor *editor)
{
const gchar *uri;
- DEBUG_PRINT ("on_editor_destroy ()");
+ DEBUG_PRINT ("%s", "on_editor_destroy ()");
if (!sdb_plugin->editor_connected || !sdb_plugin->dbv_view_tree)
{
- DEBUG_PRINT ("on_editor_destroy (): returning....");
+ DEBUG_PRINT ("%s", "on_editor_destroy (): returning....");
return;
}
@@ -188,7 +188,7 @@
/* was it the last file loaded? */
if (g_hash_table_size (sdb_plugin->editor_connected) <= 0)
{
- DEBUG_PRINT ("displaying nothing...");
+ DEBUG_PRINT ("%s", "displaying nothing...");
symbol_db_view_locals_display_nothing (
SYMBOL_DB_VIEW_LOCALS (sdb_plugin->dbv_view_tree_locals), TRUE);
}
@@ -278,11 +278,11 @@
if (sdb_plugin->session_loading)
{
- DEBUG_PRINT ("session_loading");
+ DEBUG_PRINT ("%s", "session_loading");
return;
}
else
- DEBUG_PRINT ("Updating symbols");
+ DEBUG_PRINT ("%s", "Updating symbols");
if (!sdb_plugin->editor_connected)
{
@@ -368,7 +368,7 @@
if (phase != ANJUTA_SESSION_PHASE_NORMAL)
return;
- DEBUG_PRINT ("SymbolDB: session_save");
+ DEBUG_PRINT ("%s", "SymbolDB: session_save");
anjuta_session_set_string_list (session,
SESSION_SECTION,
@@ -426,7 +426,7 @@
{
IAnjutaDocumentManager* docman;
sdb_plugin->session_loading = FALSE;
- DEBUG_PRINT ("SymbolDB: session_loading finished");
+ DEBUG_PRINT ("%s", "SymbolDB: session_loading finished");
/* Show the symbols for the current editor */
docman = anjuta_shell_get_interface (shell, IAnjutaDocumentManager, NULL);
@@ -570,7 +570,7 @@
GtkTreeSelection *selection;
GtkTreeIter iter;
- DEBUG_PRINT ("on_local_treeview_row_activated ()");
+ DEBUG_PRINT ("%s", "on_local_treeview_row_activated ()");
selection = gtk_tree_view_get_selection (view);
if (!gtk_tree_selection_get_selected (selection, &model, &iter))
{
@@ -588,7 +588,7 @@
GtkTreeSelection *selection;
GtkTreeIter iter;
- DEBUG_PRINT ("on_global_treeview_row_activated ()");
+ DEBUG_PRINT ("%s", "on_global_treeview_row_activated ()");
selection = gtk_tree_view_get_selection (view);
if (!gtk_tree_selection_get_selected (selection, &model, &iter))
{
@@ -604,7 +604,7 @@
GtkTreePath *path,
SymbolDBPlugin *user_data)
{
- DEBUG_PRINT ("on_global_treeview_row_expanded ()");
+ DEBUG_PRINT ("%s", "on_global_treeview_row_expanded ()");
symbol_db_view_row_expanded (SYMBOL_DB_VIEW (user_data->dbv_view_tree),
user_data->sdbe_project, iter);
@@ -616,7 +616,7 @@
GtkTreePath *path,
SymbolDBPlugin *user_data)
{
- DEBUG_PRINT ("on_global_treeview_row_collapsed ()");
+ DEBUG_PRINT ("%s", "on_global_treeview_row_collapsed ()");
symbol_db_view_row_collapsed (SYMBOL_DB_VIEW (user_data->dbv_view_tree),
user_data->sdbe_project, iter);
@@ -634,7 +634,7 @@
sdb_plugin = (SymbolDBPlugin *) plugin;
- DEBUG_PRINT ("value_removed_current_editor ()");
+ DEBUG_PRINT ("%s", "value_removed_current_editor ()");
/* let's remove the timeout for symbols refresh */
g_source_remove (sdb_plugin->buf_update_timeout_id);
sdb_plugin->buf_update_timeout_id = 0;
@@ -660,7 +660,7 @@
g_return_if_fail (lang_manager != NULL);
- DEBUG_PRINT ("on_project_element_added");
+ DEBUG_PRINT ("%s", "on_project_element_added");
gfile = g_file_new_for_uri (uri);
@@ -740,7 +740,7 @@
if (filename)
{
- DEBUG_PRINT ("on_project_element_removed");
+ DEBUG_PRINT ("%s", "on_project_element_removed");
DEBUG_PRINT ("project_root_dir %s", sdb_plugin->project_root_dir );
symbol_db_engine_remove_file (sdb_plugin->sdbe_project,
sdb_plugin->project_root_dir, filename);
@@ -806,7 +806,7 @@
plugin = ANJUTA_PLUGIN (data);
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (plugin);
- DEBUG_PRINT ("on_system_single_file_scan_end ()");
+ DEBUG_PRINT ("%s", "on_system_single_file_scan_end ()");
sdb_plugin->files_count_system_done++;
if (sdb_plugin->files_count_system_done >= sdb_plugin->files_count_system)
@@ -871,7 +871,7 @@
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (data);
- DEBUG_PRINT ("on_importing_project_end ()");
+ DEBUG_PRINT ("%s", "on_importing_project_end ()");
/* hide the progress bar */
gtk_widget_hide (sdb_plugin->progress_bar_project);
@@ -899,7 +899,7 @@
sdb_plugin->files_count_project_done = 0;
sdb_plugin->files_count_project = 0;
- DEBUG_PRINT ("emitting signals[PROJECT_IMPORT_END]");
+ DEBUG_PRINT ("%s", "emitting signals[PROJECT_IMPORT_END]");
/* emit signal. */
g_signal_emit (sdb_plugin, signals[PROJECT_IMPORT_END], 0);
@@ -1181,7 +1181,7 @@
check_unique_file = g_hash_table_new_full (g_str_hash,
g_str_equal, g_free, g_free);
- DEBUG_PRINT ("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
+ DEBUG_PRINT ("%s", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
DEBUG_PRINT ("Retrieving %d gbf sources of the project...",
g_list_length (prj_elements_list));
@@ -1306,7 +1306,7 @@
static void
on_received_project_import_end (SymbolDBPlugin *sdb_plugin, gpointer data)
{
- DEBUG_PRINT ("on_received_project_import_end ()");
+ DEBUG_PRINT ("%s", "on_received_project_import_end ()");
/* system's packages management */
GList *item = sdb_plugin->session_packages;
while (item != NULL)
@@ -1413,7 +1413,7 @@
* from project */
if (to_remove_files != NULL)
{
- DEBUG_PRINT ("if (to_remove_files != NULL)");
+ DEBUG_PRINT ("%s", "if (to_remove_files != NULL)");
symbol_db_engine_remove_files (sdb_plugin->sdbe_project,
sdb_plugin->project_opened,
to_remove_files);
@@ -1425,7 +1425,7 @@
/* add those left files */
if (prj_elements_list != NULL && it != NULL && parsed == TRUE)
{
- DEBUG_PRINT ("if (prj_elements_list != NULL)");
+ DEBUG_PRINT ("%s", "if (prj_elements_list != NULL)");
GPtrArray *to_add_files = g_ptr_array_new ();
GPtrArray *languages_array = g_ptr_array_new();
GList *item = prj_elements_list;
@@ -1536,7 +1536,7 @@
g_object_unref (gfile);
/* FIXME: where's the project name itself? */
- DEBUG_PRINT ("FIXME: where's the project name itself? ");
+ DEBUG_PRINT ("%s", "FIXME: where's the project name itself? ");
sdb_plugin->project_opened = g_strdup (root_dir);
DEBUG_PRINT ("FIXME: setting project opened to %s", root_dir);
@@ -1556,7 +1556,7 @@
if (symbol_db_engine_db_exists (sdb_plugin->sdbe_project,
root_dir) == FALSE)
{
- DEBUG_PRINT ("Symbol-DB: project does not exist");
+ DEBUG_PRINT ("%s", "Symbol-DB: project does not exist");
needs_sources_scan = TRUE;
project_exist = FALSE;
}
@@ -1576,7 +1576,7 @@
/* if project did not exist add a new project */
if (project_exist == FALSE)
{
- DEBUG_PRINT ("Symbol-DB: creating new project.");
+ DEBUG_PRINT ("%s", "Symbol-DB: creating new project.");
symbol_db_engine_add_new_project (sdb_plugin->sdbe_project,
NULL, /* still no workspace logic */
sdb_plugin->project_opened);
@@ -1587,7 +1587,7 @@
*/
if (needs_sources_scan == TRUE)
{
- DEBUG_PRINT ("Symbol-DB: importing sources...");
+ DEBUG_PRINT ("%s", "Symbol-DB: importing sources...");
do_import_project_sources (plugin, pm, root_dir);
}
else
@@ -1669,7 +1669,7 @@
SymbolDBPlugin *sdb_plugin;
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (plugin);
- DEBUG_PRINT ("project_root_removed ()");
+ DEBUG_PRINT ("%s", "project_root_removed ()");
/* Disconnect events from project manager */
/* FIXME: There should be a way to ensure that this project manager
@@ -1712,7 +1712,7 @@
gchar *anjuta_cache_path;
gchar *ctags_path;
- DEBUG_PRINT ("SymbolDBPlugin: Activating SymbolDBPlugin plugin ...");
+ DEBUG_PRINT ("%s", "SymbolDBPlugin: Activating SymbolDBPlugin plugin ...");
/* Initialize gda library. */
gda_init ();
@@ -1925,7 +1925,7 @@
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (plugin);
- DEBUG_PRINT ("SymbolDBPlugin: Dectivating SymbolDBPlugin plugin ...");
+ DEBUG_PRINT ("%s", "SymbolDBPlugin: Dectivating SymbolDBPlugin plugin ...");
/* disconnect some signals */
g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->dbv_view_tree_locals),
@@ -2040,7 +2040,7 @@
static void
symbol_db_finalize (GObject *obj)
{
- DEBUG_PRINT ("Symbol-DB finalize");
+ DEBUG_PRINT ("%s", "Symbol-DB finalize");
/* Finalization codes here */
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
@@ -2123,7 +2123,7 @@
if (match_types & IANJUTA_SYMBOL_TYPE_UNDEF)
{
filter_array = NULL;
- DEBUG_PRINT ("filter_array is NULL");
+ DEBUG_PRINT ("%s", "filter_array is NULL");
}
else
{
@@ -2355,7 +2355,7 @@
g_return_if_fail (package != NULL);
- DEBUG_PRINT ("on_prefs_package_add");
+ DEBUG_PRINT ("%s", "on_prefs_package_add");
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (user_data);
@@ -2374,7 +2374,7 @@
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (user_data);
GList *item;
- DEBUG_PRINT ("on_prefs_package_remove");
+ DEBUG_PRINT ("%s", "on_prefs_package_remove");
if ((item = g_list_find_custom (sdb_plugin->session_packages, package,
g_list_compare)) != NULL)
{
@@ -2417,7 +2417,7 @@
static void
ipreferences_merge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError** e)
{
- DEBUG_PRINT ("SymbolDB: ipreferences_merge");
+ DEBUG_PRINT ("%s", "SymbolDB: ipreferences_merge");
SymbolDBPlugin *sdb_plugin;
sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (ipref);
@@ -2460,7 +2460,7 @@
static void
ipreferences_iface_init(IAnjutaPreferencesIface* iface)
{
- DEBUG_PRINT ("SymbolDB: ipreferences_iface_init");
+ DEBUG_PRINT ("%s", "SymbolDB: ipreferences_iface_init");
iface->merge = ipreferences_merge;
iface->unmerge = ipreferences_unmerge;
}
Modified: trunk/plugins/symbol-db/symbol-db-engine-iterator.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-engine-iterator.c (original)
+++ trunk/plugins/symbol-db/symbol-db-engine-iterator.c Tue Nov 11 00:16:39 2008
@@ -368,14 +368,14 @@
static IAnjutaIterable *
isymbol_iter_clone (IAnjutaIterable *iter, GError **e)
{
- DEBUG_PRINT ("isymbol_iter_clone () UNIMPLEMENTED");
+ DEBUG_PRINT ("%s", "isymbol_iter_clone () UNIMPLEMENTED");
return NULL;
}
static void
isymbol_iter_assign (IAnjutaIterable *iter, IAnjutaIterable *src_iter, GError **e)
{
- DEBUG_PRINT ("isymbol_iter_assign () UNIMPLEMENTED");
+ DEBUG_PRINT ("%s", "isymbol_iter_assign () UNIMPLEMENTED");
}
Modified: trunk/plugins/symbol-db/symbol-db-engine.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-engine.c (original)
+++ trunk/plugins/symbol-db/symbol-db-engine.c Tue Nov 11 00:16:39 2008
@@ -758,7 +758,7 @@
dyn_node->query_str = g_strdup (sql);
- DEBUG_PRINT ("inserting direct child into main_gtree");
+ DEBUG_PRINT ("%s", "inserting direct child into main_gtree");
/* insert it into gtree, thanks */
g_tree_insert (node->sym_extra_info_gtree, (gpointer)sym_info, dyn_node);
@@ -1318,7 +1318,7 @@
g_return_if_fail (fd != NULL);
- DEBUG_PRINT ("sdb_engine_populate_db_by_tags ()");
+ DEBUG_PRINT ("%s", "sdb_engine_populate_db_by_tags ()");
if ((tag_file = tagsOpen_1 (fd, &tag_file_info)) == NULL)
{
g_warning ("error in opening ctags file");
@@ -1476,7 +1476,7 @@
gint tmp_updated;
/* proceed with second passes */
- DEBUG_PRINT ("FOUND end-of-group-files marker."
+ DEBUG_PRINT ("%s", "FOUND end-of-group-files marker."
"go on with sdb_engine_second_pass_do ()");
chars_ptr += len_marker;
@@ -1529,7 +1529,7 @@
/* emit signal. The end of files-group can be cannot be
* determined by the caller. This is the only way.
*/
- DEBUG_PRINT ("EMITTING scan-end");
+ DEBUG_PRINT ("%s", "EMITTING scan-end");
g_async_queue_push (priv->signals_queue, (gpointer)(SCAN_END + 1));
}
@@ -1553,7 +1553,7 @@
}
else
{
- DEBUG_PRINT ("no len_chars > len_marker");
+ DEBUG_PRINT ("%s", "no len_chars > len_marker");
}
priv->thread_status = FALSE;
@@ -1583,7 +1583,7 @@
priv = dbe->priv;
-/* DEBUG_PRINT ("signals trigger");*/
+/* DEBUG_PRINT ("%s", "signals trigger");*/
if (g_async_queue_length (priv->signals_queue) > 0)
{
gpointer tmp;
@@ -1640,7 +1640,7 @@
g_queue_get_length (priv->thread_list_data) <= 0 &&
priv->thread_monitor_handler <= 0)
{
- DEBUG_PRINT ("removing signals trigger");
+ DEBUG_PRINT ("%s", "removing signals trigger");
/* remove the trigger coz we don't need it anymore... */
g_source_remove (priv->timeout_trigger_handler);
priv->timeout_trigger_handler = 0;
@@ -1666,7 +1666,7 @@
if (priv->shutting_down == TRUE)
{
- DEBUG_PRINT ("SymbolDBEngine is shutting down: removing thread monitor");
+ DEBUG_PRINT ("%s", "SymbolDBEngine is shutting down: removing thread monitor");
/* remove the thread monitor */
g_source_remove (priv->thread_monitor_handler);
priv->thread_monitor_handler = 0;
@@ -1698,7 +1698,7 @@
if (priv->thread_closure_retries > THREAD_MAX_CLOSURE_RETRIES &&
g_queue_get_length (priv->thread_list_data) <= 0)
{
- DEBUG_PRINT ("removing thread monitor");
+ DEBUG_PRINT ("%s", "removing thread monitor");
/* remove the thread monitor */
g_source_remove (priv->thread_monitor_handler);
priv->thread_monitor_handler = 0;
@@ -1760,7 +1760,7 @@
int exit_status, gulong time_taken_in_seconds,
gpointer data)
{
- DEBUG_PRINT ("***** ctags ended *****");
+ DEBUG_PRINT ("%s", "***** ctags ended *****");
}
@@ -1772,7 +1772,7 @@
priv = dbe->priv;
- DEBUG_PRINT ("creating anjuta_launcher");
+ DEBUG_PRINT ("%s", "creating anjuta_launcher");
priv->ctags_launcher = anjuta_launcher_new ();
@@ -2993,7 +2993,7 @@
if (needs_tables_creation == TRUE)
{
- DEBUG_PRINT ("symbol_db_engine_open_db (): creating tables: it needs tables...");
+ DEBUG_PRINT ("%s", "symbol_db_engine_open_db (): creating tables: it needs tables...");
sdb_engine_create_db_tables (dbe, TABLES_SQL);
}
@@ -3129,7 +3129,7 @@
if (symbol_db_engine_add_new_workspace (dbe, workspace_name) == FALSE)
{
MP_RETURN_OBJ_STR (priv, value);
- DEBUG_PRINT ("Project cannot be added because a default workspace "
+ DEBUG_PRINT ("%s", "Project cannot be added because a default workspace "
"cannot be created");
return FALSE;
}
@@ -3150,7 +3150,7 @@
"wsname",
value)) <= 0)
{
- DEBUG_PRINT ("symbol_db_engine_add_new_project (): no workspace id");
+ DEBUG_PRINT ("%s", "symbol_db_engine_add_new_project (): no workspace id");
MP_RETURN_OBJ_STR (priv, value);
return FALSE;
}
@@ -3321,7 +3321,7 @@
gchar *relative_path = symbol_db_engine_get_file_db_path (dbe, local_filepath);
if (relative_path == NULL)
{
- DEBUG_PRINT ("relative_path == NULL");
+ DEBUG_PRINT ("%s", "relative_path == NULL");
MP_RETURN_OBJ_STR(priv, value);
return FALSE;
}
@@ -4355,7 +4355,7 @@
priv = dbe->priv;
- DEBUG_PRINT ("sdb_engine_second_pass_update_scope()");
+ DEBUG_PRINT ("%s", "sdb_engine_second_pass_update_scope()");
/* temporary unlock. This function may take a while to be completed
* so let other db-task to be executed, so that main thread
@@ -4448,7 +4448,7 @@
priv = dbe->priv;
- DEBUG_PRINT ("sdb_engine_second_pass_update_heritage ()");
+ DEBUG_PRINT ("%s", "sdb_engine_second_pass_update_heritage ()");
/* unlock */
if (priv->mutex)
g_mutex_unlock (dbe->priv->mutex);
@@ -4650,7 +4650,7 @@
priv = dbe->priv;
- DEBUG_PRINT ("sdb_engine_second_pass_do()");
+ DEBUG_PRINT ("%s", "sdb_engine_second_pass_do()");
/* prepare for scope second scan */
if ((stmt1 =
@@ -5138,7 +5138,7 @@
{
if ((num_rows = gda_data_model_get_n_rows (data_model)) <= 0)
{
- DEBUG_PRINT ("sdb_engine_detects_removed_ids (): nothing to remove");
+ DEBUG_PRINT ("%s", "sdb_engine_detects_removed_ids (): nothing to remove");
g_object_unref (data_model);
return;
}
@@ -5158,7 +5158,7 @@
val = gda_data_model_get_value_at (data_model, 0, i, NULL);
tmp = g_value_get_int (val);
- DEBUG_PRINT ("EMITTING symbol-removed");
+ DEBUG_PRINT ("%s", "EMITTING symbol-removed");
g_async_queue_push (priv->signals_queue, (gpointer)(SYMBOL_REMOVED + 1));
g_async_queue_push (priv->signals_queue, (gpointer)tmp);
}
@@ -5288,7 +5288,7 @@
GPtrArray *files_to_scan;
gint i;
- DEBUG_PRINT ("on_scan_update_files_symbols_end ();");
+ DEBUG_PRINT ("%s", "on_scan_update_files_symbols_end ();");
g_return_if_fail (dbe != NULL);
g_return_if_fail (update_data != NULL);
@@ -5513,7 +5513,7 @@
priv = dbe->priv;
- DEBUG_PRINT ("symbol_db_engine_update_files_symbols ()");
+ DEBUG_PRINT ("%s", "symbol_db_engine_update_files_symbols ()");
g_return_val_if_fail (priv->db_connection != NULL, FALSE);
g_return_val_if_fail (project != NULL, FALSE);
@@ -5844,7 +5844,7 @@
g_return_val_if_fail (text_buffers != NULL, FALSE);
g_return_val_if_fail (buffer_sizes != NULL, FALSE);
- DEBUG_PRINT ("symbol_db_engine_update_buffer_symbols ()");
+ DEBUG_PRINT ("%s", "symbol_db_engine_update_buffer_symbols ()");
temp_files = g_ptr_array_new();
real_files_on_db = g_ptr_array_new();
@@ -8625,7 +8625,7 @@
/* DEBUG_PRINT ("symbol_db_engine_get_files_for_project (): query_str is %s",
dyn_node->query_str);
- DEBUG_PRINT ("symbol_db_engine_get_files_for_project (): data dump \n");
+ DEBUG_PRINT ("%s", "symbol_db_engine_get_files_for_project (): data dump \n");
gda_data_model_dump (data, stdout);*/
if (!GDA_IS_DATA_MODEL (data) ||
Modified: trunk/plugins/symbol-db/symbol-db-prefs.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-prefs.c (original)
+++ trunk/plugins/symbol-db/symbol-db-prefs.c Tue Nov 11 00:16:39 2008
@@ -123,7 +123,7 @@
on_gconf_notify_prefs (GConfClient *gclient, guint cnxn_id,
GConfEntry *entry, gpointer user_data)
{
- DEBUG_PRINT ("on_gconf_notify_prefs ()");
+ DEBUG_PRINT ("%s", "on_gconf_notify_prefs ()");
}
static gint
@@ -192,7 +192,7 @@
priv = sdbp->priv;
store = priv->prefs_list_store;
- DEBUG_PRINT ("on_listall_exit ()");
+ DEBUG_PRINT ("%s", "on_listall_exit ()");
g_signal_handlers_disconnect_by_func (launcher, on_listall_exit,
user_data);
@@ -329,7 +329,7 @@
priv = sdbp->priv;
- DEBUG_PRINT ("on_tag_load_toggled ()");
+ DEBUG_PRINT ("%s", "on_tag_load_toggled ()");
store = priv->prefs_list_store;
path = gtk_tree_path_new_from_string (path_str);
@@ -368,7 +368,7 @@
check_button = glade_xml_get_widget (priv->prefs_gxml, PROJECT_AUTOSCAN);
check_button_value = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_button));
- DEBUG_PRINT ("on_check_button_toggled ()");
+ DEBUG_PRINT ("%s", "on_check_button_toggled ()");
anjuta_preferences_set_int (priv->prefs, PROJECT_AUTOSCAN, check_button_value);
}
@@ -384,7 +384,7 @@
update_button = glade_xml_get_widget (priv->prefs_gxml, BUFFER_AUTOSCAN);
update_button_value = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (update_button));
- DEBUG_PRINT ("on_update_button_toggled ()");
+ DEBUG_PRINT ("%s", "on_update_button_toggled ()");
anjuta_preferences_set_int (priv->prefs, BUFFER_AUTOSCAN, update_button_value);
g_signal_emit (sdbp, signals[BUFFER_UPDATE_TOGGLED], 0, update_button_value);
@@ -401,7 +401,7 @@
parallel_button = glade_xml_get_widget (priv->prefs_gxml, PARALLEL_SCAN);
parallel_button_value = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (parallel_button));
- DEBUG_PRINT ("on_parallel_button_toggled ()");
+ DEBUG_PRINT ("%s", "on_parallel_button_toggled ()");
anjuta_preferences_set_int (priv->prefs, PARALLEL_SCAN, parallel_button_value);
}
@@ -498,7 +498,7 @@
priv->pkg_list = NULL;
- DEBUG_PRINT ("symbol_db_prefs_init ()");
+ DEBUG_PRINT ("%s", "symbol_db_prefs_init ()");
if (priv->prefs_gxml == NULL)
{
@@ -580,7 +580,7 @@
sdbp = SYMBOL_DB_PREFS (object);
priv = sdbp->priv;
- DEBUG_PRINT ("symbol_db_prefs_finalize ()");
+ DEBUG_PRINT ("%s", "symbol_db_prefs_finalize ()");
anjuta_preferences_notify_remove(priv->prefs, priv->prefs_notify_id);
anjuta_preferences_remove_page(priv->prefs, _("Symbol Database"));
Modified: trunk/plugins/symbol-db/symbol-db-system.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-system.c (original)
+++ trunk/plugins/symbol-db/symbol-db-system.c Tue Nov 11 00:16:39 2008
@@ -588,7 +588,7 @@
/* there's something already working... being this function called in a
* single-threaded fashion we can put the the next parameter on the queue
*/
- DEBUG_PRINT ("pushed on queue for later scanning");
+ DEBUG_PRINT ("%s", "pushed on queue for later scanning");
g_queue_push_tail (priv->sscan_queue, ss_data);
return;
}
@@ -626,7 +626,7 @@
*/
if (ss_data->parseable_cb != NULL)
{
- DEBUG_PRINT ("on_pkg_config_exit parseable activated");
+ DEBUG_PRINT ("%s", "on_pkg_config_exit parseable activated");
ss_data->parseable_cb (sdbs, cflags == NULL ? FALSE : TRUE,
ss_data->parseable_data);
}
Modified: trunk/plugins/symbol-db/symbol-db-view-locals.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view-locals.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view-locals.c Tue Nov 11 00:16:39 2008
@@ -168,7 +168,7 @@
path = gtk_tree_row_reference_get_path (row_ref);
if (path == NULL)
{
- /*DEBUG_PRINT ("sdb_view_locals_get_iter_from_row_ref (): path is null, something "
+ /*DEBUG_PRINT ("%s", "sdb_view_locals_get_iter_from_row_ref (): path is null, something "
"went wrong ?!");*/
return FALSE;
}
@@ -195,7 +195,7 @@
priv = dbvl->priv;
- /*DEBUG_PRINT ("symbol_db_view_locals_clear_cache ()");*/
+ /*DEBUG_PRINT ("%s", "symbol_db_view_locals_clear_cache ()");*/
/* check whether we already have the view status saved on hash table or not.
* If we saved that then don't remove it, or there may be a memory leak
*/
@@ -257,7 +257,7 @@
g_return_if_fail (dbvl != NULL);
- DEBUG_PRINT ("sdb_view_locals_init ()");
+ DEBUG_PRINT ("%s", "sdb_view_locals_init ()");
dbvl->priv = g_new0 (SymbolDBViewLocalsPriv, 1);
priv = dbvl->priv;
@@ -323,7 +323,7 @@
locals = SYMBOL_DB_VIEW_LOCALS (object);
priv = locals->priv;
- /*DEBUG_PRINT ("finalizing symbol_db_view_locals ()");*/
+ /*DEBUG_PRINT ("%s", "finalizing symbol_db_view_locals ()");*/
symbol_db_view_locals_clear_cache (locals);
g_hash_table_destroy (priv->files_view_status);
@@ -600,7 +600,7 @@
if (slist == NULL)
{
/* nothing waiting for us */
- /*DEBUG_PRINT ("trigger_on_symbol_inserted (): no children waiting for us...");*/
+ /*DEBUG_PRINT ("%s", "trigger_on_symbol_inserted (): no children waiting for us...");*/
return;
}
else {
@@ -1018,7 +1018,7 @@
tdata->dbvl = dbvl;
tdata->dbe = dbe;
- /*DEBUG_PRINT ("locals: on_scan_end");*/
+ /*DEBUG_PRINT ("%s", "locals: on_scan_end");*/
if (priv->symbols_inserted_ids != NULL)
{
if (g_queue_get_length (priv->symbols_inserted_ids) > 0)
@@ -1353,7 +1353,7 @@
fss->waiting_for = priv->waiting_for;
fss->symbols_inserted_ids = priv->symbols_inserted_ids;
- /*DEBUG_PRINT ("symbol_db_view_locals_update_list (): "
+ /*DEBUG_PRINT ("%s", "symbol_db_view_locals_update_list (): "
"g_hash_table_insert ");*/
/* insert it */
g_hash_table_insert (priv->files_view_status,
@@ -1374,7 +1374,7 @@
symbol_db_engine_get_file_db_path (dbe, filepath);
if (priv->current_db_file == NULL)
{
- /*DEBUG_PRINT ("symbol_db_view_locals_update_list (): "
+ /*DEBUG_PRINT ("%s", "symbol_db_view_locals_update_list (): "
"Warning: priv->current_db_file is NULL");*/
return;
}
@@ -1403,7 +1403,7 @@
/* with this set there's no need to re-retrieve the symbols from db,
* speeding up the things.
*/
- /*DEBUG_PRINT ("symbol_db_view_locals_update_list (): "
+ /*DEBUG_PRINT ("%s", "symbol_db_view_locals_update_list (): "
"setting gtk_tree_view_set_model to the saved one");*/
gtk_tree_view_set_model (GTK_TREE_VIEW (dbvl), GTK_TREE_MODEL (store));
@@ -1437,7 +1437,7 @@
priv->symbols_inserted_ids = g_queue_new ();
- /*DEBUG_PRINT ("symbol_db_view_locals_update_list (): creating new store"); */
+ /*DEBUG_PRINT ("%s", "symbol_db_view_locals_update_list (): creating new store"); */
store = sdb_view_locals_create_new_store ();
gtk_tree_view_set_model (GTK_TREE_VIEW (dbvl), GTK_TREE_MODEL (store));
Modified: trunk/plugins/symbol-db/symbol-db-view-search.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view-search.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view-search.c Tue Nov 11 00:16:39 2008
@@ -215,7 +215,7 @@
priv = search->priv;
- DEBUG_PRINT("Entry changed");
+ DEBUG_PRINT("%s", "Entry changed");
if (!priv->idle_filter)
{
@@ -265,7 +265,7 @@
if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
{
DEBUG_PRINT
- ("sdb_view_search_on_tree_row_activate: error getting selected row");
+ ("%s", "sdb_view_search_on_tree_row_activate: error getting selected row");
return FALSE;
}
@@ -298,10 +298,10 @@
priv = search->priv;
- DEBUG_PRINT ("key_press event");
+ DEBUG_PRINT ("%s", "key_press event");
if (event->keyval == GDK_Tab)
{
- DEBUG_PRINT ("tab key pressed");
+ DEBUG_PRINT ("%s", "tab key pressed");
if (event->state & GDK_CONTROL_MASK)
{
gtk_widget_grab_focus (priv->hitlist);
@@ -322,7 +322,7 @@
gint line;
gchar *file;
- DEBUG_PRINT("enter key pressed: getting the first entry found");
+ DEBUG_PRINT("%s", "enter key pressed: getting the first entry found");
/* Get the first entry found. */
if (gtk_tree_model_get_iter_first
@@ -514,7 +514,7 @@
SymbolDBViewSearch *search = SYMBOL_DB_VIEW_SEARCH (obj);
SymbolDBViewSearchPriv *priv = search->priv;
- DEBUG_PRINT("Destroying symbolsearch");
+ DEBUG_PRINT("%s", "Destroying symbolsearch");
if (priv->entry)
g_signal_handlers_disconnect_by_func (G_OBJECT(priv->entry),
@@ -565,7 +565,7 @@
SymbolDBViewSearch *search = SYMBOL_DB_VIEW_SEARCH (obj);
SymbolDBViewSearchPriv *priv = search->priv;
- DEBUG_PRINT ("Finalizing symbolsearch widget");
+ DEBUG_PRINT ("%s", "Finalizing symbolsearch widget");
g_list_foreach (priv->completion->items, (GFunc)g_free, NULL);
g_completion_free (priv->completion);
Modified: trunk/plugins/symbol-db/symbol-db-view.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view.c Tue Nov 11 00:16:39 2008
@@ -108,7 +108,7 @@
path = gtk_tree_row_reference_get_path (row_ref);
if (path == NULL)
{
- DEBUG_PRINT ("sdb_view_get_iter_from_row_ref (): path is null, something "
+ DEBUG_PRINT ("%s", "sdb_view_get_iter_from_row_ref (): path is null, something "
"went wrong ?!");
return FALSE;
}
@@ -324,7 +324,7 @@
if (slist == NULL)
{
/* nothing waiting for us */
- /*DEBUG_PRINT ("trigger_on_symbol_inserted (): no children waiting for us...");*/
+ /*DEBUG_PRINT ("%s", "trigger_on_symbol_inserted (): no children waiting for us...");*/
return;
}
else {
@@ -819,7 +819,7 @@
g_return_if_fail (data != NULL);
node_expand = data;
- DEBUG_PRINT ("sdb_view_global_row_expanded_idle_destroy ()");
+ DEBUG_PRINT ("%s", "sdb_view_global_row_expanded_idle_destroy ()");
dbv = node_expand->dbv;
dbe = node_expand->dbe;
@@ -955,7 +955,7 @@
store = GTK_TREE_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (dbv)));
- DEBUG_PRINT ("sdb_view_namespace_row_expanded ");
+ DEBUG_PRINT ("%s", "sdb_view_namespace_row_expanded ");
/* check if there's another expanding idle_func running */
node = g_tree_lookup (priv->expanding_gfunc_ids, (gpointer)expanded_symbol_id);
@@ -1025,7 +1025,7 @@
store = GTK_TREE_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (dbv)));
- DEBUG_PRINT ("sdb_view_global_row_expanded ()");
+ DEBUG_PRINT ("%s", "sdb_view_global_row_expanded ()");
/* check if there's another expanding idle_func running */
node = g_tree_lookup (priv->expanding_gfunc_ids, (gpointer)expanded_symbol_id);
@@ -1096,7 +1096,7 @@
positive_symbol_expanded = -expanded_symbol_id;
store = GTK_TREE_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (dbv)));
- DEBUG_PRINT ("sdb_view_vars_row_expanded ()");
+ DEBUG_PRINT ("%s", "sdb_view_vars_row_expanded ()");
/* check if there's another expanding idle_func running */
node = g_tree_lookup (priv->expanding_gfunc_ids, (gpointer)expanded_symbol_id);
@@ -1450,7 +1450,7 @@
SymbolDBView *view = SYMBOL_DB_VIEW (object);
SymbolDBViewPriv *priv = view->priv;
- DEBUG_PRINT ("finalizing symbol_db_view ()");
+ DEBUG_PRINT ("%s", "finalizing symbol_db_view ()");
symbol_db_view_clear_cache (view);
@@ -1841,7 +1841,7 @@
priv = dbv->priv;
- DEBUG_PRINT ("symbol_db_view_open ()");
+ DEBUG_PRINT ("%s", "symbol_db_view_open ()");
symbol_db_view_clear_cache (dbv);
store = sdb_view_create_new_store ();
Modified: trunk/plugins/terminal/terminal.c
==============================================================================
--- trunk/plugins/terminal/terminal.c (original)
+++ trunk/plugins/terminal/terminal.c Tue Nov 11 00:16:39 2008
@@ -592,7 +592,7 @@
static gboolean initialized = FALSE;
AnjutaUI *ui;
- DEBUG_PRINT ("TerminalPlugin: Activating Terminal plugin ...");
+ DEBUG_PRINT ("%s", "TerminalPlugin: Activating Terminal plugin ...");
term_plugin = ANJUTA_PLUGIN_TERMINAL (plugin);
term_plugin->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
Modified: trunk/plugins/tools/plugin.c
==============================================================================
--- trunk/plugins/tools/plugin.c (original)
+++ trunk/plugins/tools/plugin.c Tue Nov 11 00:16:39 2008
@@ -171,7 +171,7 @@
AnjutaUI *ui;
GtkAction *action;
- DEBUG_PRINT ("Tools Plugin: Activating tools plugin...");
+ DEBUG_PRINT ("%s", "Tools Plugin: Activating tools plugin...");
/* Add all our actions */
ui = anjuta_shell_get_ui (plugin->shell, NULL);
@@ -204,7 +204,7 @@
ATPPlugin *this = ANJUTA_PLUGIN_ATP (plugin);
AnjutaUI *ui;
- DEBUG_PRINT ("Tools Plugin: Deactivating tools plugin...");
+ DEBUG_PRINT ("%s", "Tools Plugin: Deactivating tools plugin...");
atp_tool_list_deactivate (&this->list);
atp_context_list_destroy (&this->context);
Modified: trunk/plugins/valgrind/plugin.c
==============================================================================
--- trunk/plugins/valgrind/plugin.c (original)
+++ trunk/plugins/valgrind/plugin.c Tue Nov 11 00:16:39 2008
@@ -536,7 +536,7 @@
static gboolean initialized = FALSE;
AnjutaValgrindPlugin *valgrind;
- DEBUG_PRINT ("AnjutaValgrindPlugin: Activating AnjutaValgrindPlugin plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaValgrindPlugin: Activating AnjutaValgrindPlugin plugin ...");
valgrind = ANJUTA_PLUGIN_VALGRIND (plugin);
if (!initialized) {
@@ -590,7 +590,7 @@
valgrind = ANJUTA_PLUGIN_VALGRIND (plugin);
- DEBUG_PRINT ("AnjutaValgrindPlugin: Dectivating AnjutaValgrindPlugin plugin ...");
+ DEBUG_PRINT ("%s", "AnjutaValgrindPlugin: Dectivating AnjutaValgrindPlugin plugin ...");
if ( valgrind->valgrind_displayed ) {
valgrind->valgrind_displayed = FALSE;
Modified: trunk/plugins/valgrind/preferences.c
==============================================================================
--- trunk/plugins/valgrind/preferences.c (original)
+++ trunk/plugins/valgrind/preferences.c Tue Nov 11 00:16:39 2008
@@ -137,14 +137,14 @@
}
if (!g_path_is_absolute(str_file))
- DEBUG_PRINT("Not absolute");
+ DEBUG_PRINT("%s", "Not absolute");
widget =
gtk_file_chooser_button_new (_("Choose Valgrind Binary File Path..."),
GTK_FILE_CHOOSER_ACTION_OPEN);
if ( gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (widget), str_file) == FALSE )
- DEBUG_PRINT ("error: could not select file uri with gtk_file_chooser_select_filename ()");
+ DEBUG_PRINT ("%s", "error: could not select file uri with gtk_file_chooser_select_filename ()");
g_free (str_file);
Modified: trunk/plugins/valgrind/vgactions.c
==============================================================================
--- trunk/plugins/valgrind/vgactions.c (original)
+++ trunk/plugins/valgrind/vgactions.c Tue Nov 11 00:16:39 2008
@@ -164,7 +164,7 @@
priv = actions->priv;
if ((condition & G_IO_IN) && vg_tool_view_step (VG_TOOL_VIEW (priv->view)) <= 0) {
- DEBUG_PRINT ("child program exited or error in GIOChannel [IO_IN], killing");
+ DEBUG_PRINT ("%s", "child program exited or error in GIOChannel [IO_IN], killing");
anjuta_util_dialog_info (NULL, _("Reached the end of the input file or error "
"in parsing valgrind output."));
vg_actions_kill (actions);
@@ -173,7 +173,7 @@
}
if (condition & G_IO_HUP) {
- DEBUG_PRINT ("child program exited or error in GIOChannel [IO_HUP], killing");
+ DEBUG_PRINT ("%s", "child program exited or error in GIOChannel [IO_HUP], killing");
anjuta_util_dialog_info (NULL, _("Process exited."));
vg_actions_kill (actions);
priv->watch_id = 0;
Modified: trunk/plugins/valgrind/vggeneralprefs.c
==============================================================================
--- trunk/plugins/valgrind/vggeneralprefs.c (original)
+++ trunk/plugins/valgrind/vggeneralprefs.c Tue Nov 11 00:16:39 2008
@@ -276,7 +276,7 @@
GTK_FILE_CHOOSER_ACTION_OPEN);
if ( gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (widget), str_file) == FALSE )
- DEBUG_PRINT ("error: could not select file uri with gtk_file_chooser_select_filename ()");
+ DEBUG_PRINT ("%s", "error: could not select file uri with gtk_file_chooser_select_filename ()");
/* grab every change in file selection */
g_signal_connect (widget, "selection-changed", G_CALLBACK (file_entry_changed), SUPPRESSIONS_KEY);
Modified: trunk/src/anjuta-app.c
==============================================================================
--- trunk/src/anjuta-app.c (original)
+++ trunk/src/anjuta-app.c Tue Nov 11 00:16:39 2008
@@ -281,7 +281,7 @@
on_merge_widget_destroy (GtkWidget *merge_widget, GtkWidget *menuitem)
{
toolbars = g_list_remove (toolbars, merge_widget);
- DEBUG_PRINT ("Destroying menuitem for toolbar widget");
+ DEBUG_PRINT ("%s", "Destroying menuitem for toolbar widget");
gtk_widget_destroy (menuitem);
}
@@ -289,7 +289,7 @@
on_add_merge_widget (GtkUIManager *merge, GtkWidget *widget,
GtkWidget *ui_container)
{
- DEBUG_PRINT ("Adding UI item ...");
+ DEBUG_PRINT ("%s", "Adding UI item ...");
if (GTK_IS_MENU_BAR (widget))
{
@@ -600,7 +600,7 @@
100, 100, 0, 0, 100, 100, 1, 1, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
};
- DEBUG_PRINT ("Initializing Anjuta...");
+ DEBUG_PRINT ("%s", "Initializing Anjuta...");
gtk_window_set_geometry_hints (GTK_WINDOW (app), GTK_WIDGET (app),
&size_hints, GDK_HINT_RESIZE_INC);
@@ -1047,7 +1047,7 @@
static void
on_widget_destroy (GtkWidget *widget, AnjutaApp *app)
{
- DEBUG_PRINT ("Widget about to be destroyed");
+ DEBUG_PRINT ("%s", "Widget about to be destroyed");
g_hash_table_foreach_remove (app->widgets, remove_from_widgets_hash,
widget);
}
@@ -1083,7 +1083,7 @@
if (g_hash_table_foreach_remove (app->widgets,
remove_from_widgets_hash,
widget)){
- DEBUG_PRINT ("Widget removed from container");
+ DEBUG_PRINT ("%s", "Widget removed from container");
}
}
@@ -1094,7 +1094,7 @@
GtkWidget *menuitem;
GdlDockItem *dockitem;
- DEBUG_PRINT ("Removing widget from hash");
+ DEBUG_PRINT ("%s", "Removing widget from hash");
app = g_object_get_data (G_OBJECT (widget), "app-object");
dockitem = g_object_get_data (G_OBJECT (widget), "dockitem");
Modified: trunk/src/anjuta.c
==============================================================================
--- trunk/src/anjuta.c (original)
+++ trunk/src/anjuta.c Tue Nov 11 00:16:39 2008
@@ -48,7 +48,7 @@
AnjutaSavePrompt *save_prompt;
gchar *remembered_plugins;
- DEBUG_PRINT ("AnjutaApp delete event");
+ DEBUG_PRINT ("%s", "AnjutaApp delete event");
plugin_manager = anjuta_shell_get_plugin_manager (ANJUTA_SHELL (app), NULL);
profile_manager = anjuta_shell_get_profile_manager (ANJUTA_SHELL (app), NULL);
@@ -109,7 +109,7 @@
static void
on_anjuta_destroy (GtkWidget * w, gpointer data)
{
- DEBUG_PRINT ("AnjutaApp destroy event");
+ DEBUG_PRINT ("%s", "AnjutaApp destroy event");
gtk_widget_hide (w);
gtk_main_quit ();
@@ -125,7 +125,7 @@
gchar *argv[] = { "rm", "-rf", NULL};
const gchar *prefix;
- DEBUG_PRINT ("Going to save session...");
+ DEBUG_PRINT ("%s", "Going to save session...");
prefix = gnome_client_get_config_prefix (client);
argv[2] = gnome_config_get_real_path (prefix);
@@ -167,7 +167,7 @@
if (strcmp (anjuta_profile_get_name (profile), USER_PROFILE_NAME) != 0)
return;
- DEBUG_PRINT ("User profile loaded; Restoring user session");
+ DEBUG_PRINT ("%s", "User profile loaded; Restoring user session");
/* If profile scoped to "user", restore user session */
if (system_restore_session)
@@ -210,7 +210,7 @@
if (strcmp (anjuta_profile_get_name (profile), USER_PROFILE_NAME) != 0)
return;
- DEBUG_PRINT ("User profile descoped; Saving user session");
+ DEBUG_PRINT ("%s", "User profile descoped; Saving user session");
/* If profile descoped from is "user", save user session */
session_dir = USER_SESSION_PATH_NEW;
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Tue Nov 11 00:16:39 2008
@@ -355,7 +355,7 @@
if (!bacon_message_connection_get_is_server (connection) &&
no_client == FALSE)
{
- DEBUG_PRINT("Client");
+ DEBUG_PRINT("%s", "Client");
send_bacon_message ();
/* we never popup a window... tell startup-notification
@@ -369,7 +369,7 @@
}
else
{
- DEBUG_PRINT("Server");
+ DEBUG_PRINT("%s", "Server");
bacon_message_connection_set_callback (connection,
on_message_received,
NULL);
Modified: trunk/src/shell.c
==============================================================================
--- trunk/src/shell.c (original)
+++ trunk/src/shell.c Tue Nov 11 00:16:39 2008
@@ -120,7 +120,7 @@
on_add_merge_widget (GtkUIManager *merge, GtkWidget *widget,
GtkWidget *ui_container)
{
- DEBUG_PRINT ("Adding UI item...");
+ DEBUG_PRINT ("%s", "Adding UI item...");
gtk_box_pack_start (GTK_BOX ((ANJUTA_TEST_SHELL (ui_container))->box),
widget, FALSE, FALSE, 0);
}
Modified: trunk/tagmanager/tm_workspace.c
==============================================================================
--- trunk/tagmanager/tm_workspace.c (original)
+++ trunk/tagmanager/tm_workspace.c Tue Nov 11 00:16:39 2008
@@ -1041,7 +1041,7 @@
find_namespace_members_tags (global, tags, langJava,
new_name, filename);
/*/
- DEBUG_PRINT ("returning these");
+ DEBUG_PRINT ("%s", "returning these");
gint i;
for (i=0; i < tags->len; i++) {
TMTag *cur_tag;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]