mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
g_warning -> PWARN
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6422 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f8d85c21f1
commit
c073376abb
@ -394,7 +394,7 @@ gnc_file_be_load_from_file(FileBackend *be)
|
||||
}
|
||||
}
|
||||
default:
|
||||
g_warning("File not any known type");
|
||||
PWARN("File not any known type");
|
||||
xaccBackendSetError((Backend*)be, ERR_FILEIO_UNKNOWN_FILE_TYPE);
|
||||
return FALSE;
|
||||
break;
|
||||
|
@ -45,6 +45,8 @@
|
||||
#include "Account.h"
|
||||
#include "Group.h"
|
||||
|
||||
static short module = MOD_IO;
|
||||
|
||||
const gchar *commodity_version_string = "2.0.0";
|
||||
|
||||
xmlNodePtr
|
||||
@ -135,17 +137,17 @@ valid_commodity(gnc_commodity *com)
|
||||
{
|
||||
if(gnc_commodity_get_namespace(com) == NULL)
|
||||
{
|
||||
g_warning("Invalid commodity: no namespace");
|
||||
PWARN("Invalid commodity: no namespace");
|
||||
return FALSE;
|
||||
}
|
||||
if(gnc_commodity_get_mnemonic(com) == NULL)
|
||||
{
|
||||
g_warning("Invalid commodity: no mnemonic");
|
||||
PWARN("Invalid commodity: no mnemonic");
|
||||
return FALSE;
|
||||
}
|
||||
if(gnc_commodity_get_fraction(com) == 0)
|
||||
{
|
||||
g_warning("Invalid commodity: 0 fraction");
|
||||
PWARN("Invalid commodity: 0 fraction");
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
@ -185,7 +187,7 @@ gnc_commodity_end_handler(gpointer data_for_children,
|
||||
|
||||
if(!valid_commodity(com))
|
||||
{
|
||||
g_warning("Invalid commodity parsed");
|
||||
PWARN("Invalid commodity parsed");
|
||||
xmlElemDump(stdout, NULL, tree);
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
|
@ -48,6 +48,8 @@
|
||||
#include "Scrub.h"
|
||||
#include "TransLog.h"
|
||||
|
||||
static short module = MOD_IO;
|
||||
|
||||
#define GNC_ACCOUNT_STRING "gnc-account-example"
|
||||
#define GNC_ACCOUNT_SHORT "gnc-act:short-description"
|
||||
#define GNC_ACCOUNT_LONG "gnc-act:long-description"
|
||||
@ -115,7 +117,7 @@ clear_up_account_commodity_session(
|
||||
}
|
||||
else if(!gcom)
|
||||
{
|
||||
g_warning("unable to find global commodity for %s adding new",
|
||||
PWARN("unable to find global commodity for %s adding new",
|
||||
gnc_commodity_get_unique_name(com));
|
||||
gnc_commodity_table_insert(tbl, com);
|
||||
}
|
||||
@ -152,7 +154,7 @@ clear_up_account_commodity(
|
||||
}
|
||||
else if(!gcom)
|
||||
{
|
||||
g_warning("unable to find global commodity for %s adding new",
|
||||
PWARN("unable to find global commodity for %s adding new",
|
||||
gnc_commodity_get_unique_name(com));
|
||||
gnc_commodity_table_insert(tbl, com);
|
||||
}
|
||||
@ -392,7 +394,7 @@ slist_destroy_example_account(gpointer data, gpointer user_data)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_warning("GncExampleAccount pointer in slist was NULL");
|
||||
PWARN("GncExampleAccount pointer in slist was NULL");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -627,20 +627,20 @@ dom_tree_to_gdate(xmlNodePtr node)
|
||||
seen_date = TRUE;
|
||||
g_date_set_dmy( ret, day, month, year );
|
||||
if( !g_date_valid( ret ) ) {
|
||||
g_warning("dom_tree_to_gdate: invalid date");
|
||||
PWARN("invalid date");
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
PERR("dom_tree_to_gdate: unexpected sub-node.");
|
||||
PERR("unexpected sub-node.");
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
if(!seen_date) {
|
||||
g_warning("dom_tree_to_gdate: no gdate node found.");
|
||||
PWARN("no gdate node found.");
|
||||
goto failure;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "gnc-numeric.h"
|
||||
#include "gnc-engine-util.h"
|
||||
|
||||
static short module = MOD_IO;
|
||||
|
||||
gboolean
|
||||
isspace_str(const gchar *str, int nomorethan)
|
||||
@ -369,7 +370,7 @@ gnc_timegm (struct tm *tm)
|
||||
|
||||
/* FIXME: there's no way to report this error to the caller. */
|
||||
if(gnc_setenv("TZ", "UTC", 1) != 0)
|
||||
g_error ("gnc_timegm couldn't switch the TZ.");
|
||||
PERR ("couldn't switch the TZ.");
|
||||
|
||||
result = mktime (tm);
|
||||
|
||||
@ -377,13 +378,13 @@ gnc_timegm (struct tm *tm)
|
||||
{
|
||||
/* FIXME: there's no way to report this error to the caller. */
|
||||
if(gnc_setenv("TZ", old_tz, 1) != 0)
|
||||
g_error ("gnc_timegm couldn't switch the TZ back.");
|
||||
PERR ("couldn't switch the TZ back.");
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME: there's no way to report this error to the caller. */
|
||||
if(gnc_unsetenv("TZ") != 0)
|
||||
g_error ("gnc_timegm couldn't restore the TZ to undefined.");
|
||||
PERR ("couldn't restore the TZ to undefined.");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ sixtp_set_any(sixtp *tochange, int cleanup, ...)
|
||||
|
||||
if(!tochange)
|
||||
{
|
||||
g_warning("Null tochange passed\n");
|
||||
PWARN("Null tochange passed\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -208,7 +208,7 @@ sixtp_set_any(sixtp *tochange, int cleanup, ...)
|
||||
|
||||
default:
|
||||
va_end(ap);
|
||||
g_error("Bogus sixtp type %d\n", type);
|
||||
PERR("Bogus sixtp type %d\n", type);
|
||||
if(cleanup)
|
||||
{
|
||||
sixtp_destroy(tochange);
|
||||
@ -317,7 +317,7 @@ sixtp_add_some_sub_parsers(sixtp *tochange, int cleanup, ...)
|
||||
handler = va_arg(ap, sixtp*);
|
||||
if(!handler)
|
||||
{
|
||||
g_warning("Handler for tag %s is null\n",
|
||||
PWARN("Handler for tag %s is null\n",
|
||||
tag ? tag : "(null)");
|
||||
|
||||
if(cleanup)
|
||||
|
Loading…
Reference in New Issue
Block a user