aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-02 14:30:24 -0400
committerFranklin Wei <me@fwei.tk>2018-07-02 14:30:24 -0400
commitbfc206fbce814db2530fc2b5189d3655c15356ca (patch)
tree191cb3527e14fe225f4fd28a87643dd5d3bcf680
parentacfded5fa6c815bfdf2e51f37e63446d607b654d (diff)
downloadcsaa-bfc206fbce814db2530fc2b5189d3655c15356ca.zip
csaa-bfc206fbce814db2530fc2b5189d3655c15356ca.tar.gz
csaa-bfc206fbce814db2530fc2b5189d3655c15356ca.tar.bz2
csaa-bfc206fbce814db2530fc2b5189d3655c15356ca.tar.xz
Remove debug code from service provider; warn about inconsistent module state
-rw-r--r--service_provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/service_provider.c b/service_provider.c
index 3344c5e..35113fa 100644
--- a/service_provider.c
+++ b/service_provider.c
@@ -335,6 +335,8 @@ struct service_provider *sp_new(const void *key, size_t keylen,
NULL, 0,
logleaves);
+ warn("resuming from previous database; module will fail");
+
int leaves = count_rows(sp->db, "FileLeaves");
if(leaves != (1ULL << logleaves))
warn("logleaves value is inconsistent with leaf count in IOMT! (have %d, expect %d)",
@@ -999,8 +1001,6 @@ struct version_info sp_fileinfo(struct service_provider *sp,
struct file_version *ver = lookup_version(sp, rec->idx, version);
- printf("Version kf=%s\n", hash_format(ver->kf, 4).str);
-
if(acl_out)
*acl_out = iomt_dup(rec->acl);