Fix printf conversion specifier of 64 bit integers in message.

(Also, fix compiler warning about && and ||).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20161 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-01-24 14:02:39 +00:00
parent d912e8a320
commit 04cafacf3f
2 changed files with 4 additions and 4 deletions

View File

@ -2895,13 +2895,13 @@ conn_test_dbi_library( dbi_conn conn )
}
if ( testlonglong != resultlonglong )
{
PWARN( "Test_DBI_Library: LongLong Failed %lld != %lld",
PWARN( "Test_DBI_Library: LongLong Failed %" G_GINT64_FORMAT " != % " G_GINT64_FORMAT,
testlonglong, resultlonglong );
retval = FALSE;
}
if ( testulonglong != resultulonglong )
{
PWARN( "Test_DBI_Library: Unsigned longlong Failed %llu != %llu",
PWARN( "Test_DBI_Library: Unsigned longlong Failed %" G_GUINT64_FORMAT " != %" G_GUINT64_FORMAT,
testulonglong, resultulonglong );
retval = FALSE;
}

View File

@ -827,8 +827,8 @@ gnc_post_file_open (const char * filename)
* want it to) be updated or it's too new. Mark it as
* read-only
*/
if (uh_oh && io_err == ERR_SQL_DB_TOO_OLD ||
io_err == ERR_SQL_DB_TOO_NEW)
if (uh_oh && (io_err == ERR_SQL_DB_TOO_OLD ||
io_err == ERR_SQL_DB_TOO_NEW))
{
qof_book_mark_readonly(qof_session_get_book(new_session));
uh_oh = FALSE;