diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-07-17 23:23:41 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-07-17 23:23:41 +0000 |
commit | 55a8a69f02d39f26d936ed8ac5580fddc02b0d80 (patch) | |
tree | 28603797ea371e7131c44e4c25cc06d44f80e9de /src/datastore/plugin_datastore_sqlite.c | |
parent | 3275513282c9ceb806cd3969d0fade8057dac5c9 (diff) |
print
git-svn-id: https://gnunet.org/svn/gnunet@8743 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index e4a41c899c..eccc273435 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -285,11 +285,11 @@ database_setup (struct GNUNET_CONFIGURATION_Handle *cfg, if ( (sqlite3_step (stmt) == SQLITE_DONE) && (sqlite3_exec (plugin->dbh, "CREATE TABLE gn080 (" - " size INTEGER NOT NULL DEFAULT 0," - " type INTEGER NOT NULL DEFAULT 0," - " prio INTEGER NOT NULL DEFAULT 0," - " anonLevel INTEGER NOT NULL DEFAULT 0," - " expire INTEGER NOT NULL DEFAULT 0," + " size INT4 NOT NULL DEFAULT 0," + " type INT4 NOT NULL DEFAULT 0," + " prio INT4 NOT NULL DEFAULT 0," + " anonLevel INT4 NOT NULL DEFAULT 0," + " expire INT8 NOT NULL DEFAULT 0," " hash TEXT NOT NULL DEFAULT ''," " vhash TEXT NOT NULL DEFAULT ''," " value BLOB NOT NULL DEFAULT '')", NULL, NULL, @@ -681,11 +681,12 @@ sqlite_plugin_put (void *cls, #if DEBUG_SQLITE GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "sqlite", - "Storing in database block with type %u/key `%s'/priority %u/expiration %llu.\n", + "Storing in database block with type %u/key `%s'/priority %u/expiration %llu (%lld).\n", type, GNUNET_h2s(key), priority, - GNUNET_TIME_absolute_get_remaining (expiration).value); + (unsigned long long) GNUNET_TIME_absolute_get_remaining (expiration).value, + (long long) expiration.value); #endif GNUNET_CRYPTO_hash (data, size, &vhash); stmt = plugin->insertContent; |