mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
new, improved debug printing macros
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2317 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
faceb9cd3f
commit
e29bd51be6
@ -66,7 +66,7 @@ static gboolean gnc_file_box_delete_cb(GtkWidget *widget, GdkEvent *event,
|
||||
char *
|
||||
fileBox(const char * title, const char * filter)
|
||||
{
|
||||
ENTER("fileBox");
|
||||
ENTER("\n");
|
||||
|
||||
/* Set a default title if nothing was passed in */
|
||||
if (title == NULL)
|
||||
@ -114,7 +114,7 @@ fileBox(const char * title, const char * filter)
|
||||
|
||||
gtk_widget_destroy(GTK_WIDGET(fb_info.file_box));
|
||||
|
||||
LEAVE("fileBox");
|
||||
LEAVE("\n");
|
||||
|
||||
return fb_info.file_name;
|
||||
}
|
||||
|
@ -193,12 +193,12 @@ gnc_option_set_ui_value(GNCOption *option, gboolean use_default)
|
||||
}
|
||||
else
|
||||
{
|
||||
PERR("gnc_option_set_ui_value: Unknown type. Ignoring.\n");
|
||||
PERR("Unknown type. Ignoring.\n");
|
||||
}
|
||||
|
||||
if (bad_value)
|
||||
{
|
||||
PERR("gnc_option_set_ui_value: bad value\n");
|
||||
PERR("bad value\n");
|
||||
}
|
||||
|
||||
free(type);
|
||||
@ -321,7 +321,7 @@ gnc_option_get_ui_value(GNCOption *option)
|
||||
}
|
||||
else
|
||||
{
|
||||
PERR("gnc_option_get_ui_value: Unknown type for refresh. Ignoring.\n");
|
||||
PERR("Unknown type for refresh. Ignoring.\n");
|
||||
}
|
||||
|
||||
free(type);
|
||||
@ -667,7 +667,7 @@ gnc_option_create_list_widget(GNCOption *option, char *name)
|
||||
}
|
||||
else
|
||||
{
|
||||
PERR("gnc_option_create_list_widget: bad value name\n");
|
||||
PERR("bad value name\n");
|
||||
}
|
||||
}
|
||||
|
||||
@ -1017,7 +1017,7 @@ gnc_option_set_ui_widget(GNCOption *option,
|
||||
}
|
||||
else
|
||||
{
|
||||
PERR("gnc_option_set_ui_widget: Unknown type. Ignoring.\n");
|
||||
PERR("Unknown type. Ignoring.\n");
|
||||
}
|
||||
|
||||
if (!packed && (enclosing != NULL))
|
||||
|
@ -85,7 +85,7 @@ gnc_extension_type(ExtensionInfo *ext_info)
|
||||
string = gnc_guile_call1_symbol_to_string(getters.type, ext_info->extension);
|
||||
if (string == NULL)
|
||||
{
|
||||
PERR("gnc_extension_type: bad type");
|
||||
PERR("bad type");
|
||||
return GNOME_APP_UI_ENDOFINFO;
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ gnc_extension_type(ExtensionInfo *ext_info)
|
||||
type = GNOME_APP_UI_SEPARATOR;
|
||||
else
|
||||
{
|
||||
PERR("gnc_extension_type: bad type");
|
||||
PERR("bad type");
|
||||
type = GNOME_APP_UI_ENDOFINFO;
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ gnc_extension_path(ExtensionInfo *ext_info)
|
||||
free(strings[--i]);
|
||||
g_free(strings);
|
||||
|
||||
PERR("gnc_extension_menu_path: not a string");
|
||||
PERR("not a string");
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@ -192,7 +192,7 @@ gnc_extension_run_script(ExtensionInfo *ext_info)
|
||||
script = gnc_guile_call1_to_procedure(getters.script, ext_info->extension);
|
||||
if (script == SCM_UNDEFINED)
|
||||
{
|
||||
PERR("gnc_extension_run_script: not a procedure.");
|
||||
PERR("not a procedure.");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -259,7 +259,7 @@ gnc_create_extension_info(SCM extension)
|
||||
break;
|
||||
|
||||
default:
|
||||
PERR("gnc_create_extension_info: bad item type");
|
||||
PERR("bad item type");
|
||||
g_free(ext_info);
|
||||
return NULL;
|
||||
}
|
||||
@ -300,7 +300,7 @@ gnc_add_extension(SCM extension)
|
||||
ext_info = gnc_create_extension_info(extension);
|
||||
if (ext_info == NULL)
|
||||
{
|
||||
PERR("gnc_add_extension: bad extension");
|
||||
PERR("bad extension");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ gnc_option_db_register_change_callback(GNCOptionDB *odb,
|
||||
register_proc = gh_eval_str("gnc:options-register-c-callback");
|
||||
if (!gh_procedure_p(register_proc))
|
||||
{
|
||||
PERR("gnc_option_db_register_change_callback2: not a procedure\n");
|
||||
PERR("not a procedure\n");
|
||||
return SCM_UNDEFINED;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ gnc_option_db_unregister_change_callback_id(GNCOptionDB *odb, SCM callback_id)
|
||||
proc = gh_eval_str("gnc:options-unregister-callback-id");
|
||||
if (!gh_procedure_p(proc))
|
||||
{
|
||||
PERR("gnc_option_db_unregister_change_callback_id: not a procedure\n");
|
||||
PERR("not a procedure\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -310,7 +310,7 @@ gnc_call_option_change_callbacks(GNCOptionDB *odb)
|
||||
proc = gh_eval_str("gnc:options-run-callbacks");
|
||||
if (!gh_procedure_p(proc))
|
||||
{
|
||||
PERR("gnc_call_option_change_callbacks: not a procedure\n");
|
||||
PERR("not a procedure\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1349,7 +1349,7 @@ gnc_commit_option(GNCOption *option)
|
||||
result = gh_call1(validator, value);
|
||||
if (!gh_list_p(result) || gh_null_p(result))
|
||||
{
|
||||
PERR("gnc_commit_option: bad validation result\n");
|
||||
PERR("bad validation result\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1357,7 +1357,7 @@ gnc_commit_option(GNCOption *option)
|
||||
ok = gh_car(result);
|
||||
if (!gh_boolean_p(ok))
|
||||
{
|
||||
PERR("gnc_commit_option: bad validation result\n");
|
||||
PERR("bad validation result\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1378,7 +1378,7 @@ gnc_commit_option(GNCOption *option)
|
||||
oops = gh_cadr(result);
|
||||
if (!gh_string_p(oops))
|
||||
{
|
||||
PERR("gnc_commit_option: bad validation result\n");
|
||||
PERR("bad validation result\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -244,7 +244,7 @@ gnc_ok_cancel_dialog_parented(gncUIWidget parent, const char *message,
|
||||
default_button = 1;
|
||||
break;
|
||||
default:
|
||||
PWARN("gnc_verify_cancel_dialog: bad default button\n");
|
||||
PWARN("bad default button\n");
|
||||
default_button = 0;
|
||||
break;
|
||||
}
|
||||
@ -303,7 +303,7 @@ gnc_verify_cancel_dialog_parented(GtkWidget *parent, const char *message,
|
||||
default_button = 2;
|
||||
break;
|
||||
default:
|
||||
PWARN("gnc_verify_cancel_dialog: bad default button\n");
|
||||
PWARN("bad default button\n");
|
||||
default_button = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ gnucash_ui_init()
|
||||
int fake_argc = 1;
|
||||
char *fake_argv[] = {"gnucash"};
|
||||
|
||||
ENTER ("gnucash_ui_init");
|
||||
ENTER ("\n");
|
||||
|
||||
/* We're going to have to have other ways to handle X and GUI
|
||||
specific args... */
|
||||
@ -182,7 +182,7 @@ gnucash_ui_init()
|
||||
gnucash_color_init();
|
||||
}
|
||||
|
||||
LEAVE ("gnucash_ui_init");
|
||||
LEAVE ("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -616,7 +616,7 @@ gnc_configure_reverse_balance(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
PERR("gnc_configure_reverse_balance: bad value\n");
|
||||
PERR("bad value\n");
|
||||
|
||||
reverse_type[INCOME] = GNC_T;
|
||||
reverse_type[EXPENSE] = GNC_T;
|
||||
|
@ -85,7 +85,7 @@ gnc_ui_adjBWindow_close_cb(GnomeDialog *dialog, gpointer user_data)
|
||||
AdjBWindow * adjBData = (AdjBWindow *) user_data;
|
||||
Account *account = adjBData->account;
|
||||
|
||||
DEBUG("Closing adjust balance window");
|
||||
DEBUG("Closing adjust balance window\n");
|
||||
|
||||
REMOVE_FROM_LIST (AdjBWindow, adjBList, account, account);
|
||||
|
||||
|
@ -1228,7 +1228,7 @@ xaccDestroyRecnWindow(Account *account)
|
||||
{
|
||||
RecnWindow *recnData = NULL;
|
||||
|
||||
DEBUG("Destroying reconcile window");
|
||||
DEBUG("Destroying reconcile window\n");
|
||||
|
||||
FIND_IN_LIST(RecnWindow, recnList, account, account, recnData);
|
||||
if (recnData == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user