Skip to content

Commit

Permalink
Make select_tool debug logs a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Mar 18, 2018
1 parent 73caad9 commit 3f85689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gromit-mpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,21 +370,21 @@ void select_tool (GromitData *data,
default_name [default_len+2] = modifier + 48;

if(data->debug)
g_printerr("DEBUG: select_tool looking up context %s\n", name);
g_printerr("DEBUG: select_tool looking up context for %s\n", name);

context = g_hash_table_lookup (data->tool_config, name);
if(context)
{
if(data->debug)
g_printerr("DEBUG: select_tool set context %s\n", name);
g_printerr("DEBUG: select_tool set context for %s\n", name);
slavedata->cur_context = context;
success = 1;
}
else /* try default_name */
if((context = g_hash_table_lookup (data->tool_config, default_name)))
{
if(data->debug)
g_printerr("DEBUG: select_tool set default context %s\n", default_name);
g_printerr("DEBUG: select_tool set default context %s for %s\n", default_name, name);
slavedata->cur_context = context;
success = 1;
}
Expand Down

0 comments on commit 3f85689

Please sign in to comment.