diff options
author | Michael Schroeder <mls@suse.de> | 2012-12-13 15:25:22 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-12-13 15:25:22 +0100 |
commit | abb96ce2e2deba4667f9d42b808939541e692a07 (patch) | |
tree | 5c2b6ac98273c0cb3363fe49fea3be3b487a4da6 /tools/dumpsolv.c | |
parent | c9d6e7cc4ecde9e325f23f1cd2f67cbae747c925 (diff) | |
download | libsolv-abb96ce2e2deba4667f9d42b808939541e692a07.tar.gz libsolv-abb96ce2e2deba4667f9d42b808939541e692a07.tar.bz2 libsolv-abb96ce2e2deba4667f9d42b808939541e692a07.zip |
delete old debug statements
Diffstat (limited to 'tools/dumpsolv.c')
-rw-r--r-- | tools/dumpsolv.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/dumpsolv.c b/tools/dumpsolv.c index 1109008..b0ac053 100644 --- a/tools/dumpsolv.c +++ b/tools/dumpsolv.c @@ -24,11 +24,11 @@ dump_repodata(Repo *repo) Repodata *data; if (repo->nrepodata == 0) return; - printf("repo contains %d repodata sections:\n", repo->nrepodata); + printf("repo contains %d repodata sections:\n", repo->nrepodata - 1); FOR_REPODATAS(repo, i, data) { unsigned int j; - printf("\nrepodata %d has %d keys, %d schemata\n", i + 1, data->nkeys - 1, data->nschemata - 1); + printf("\nrepodata %d has %d keys, %d schemata\n", i, data->nkeys - 1, data->nschemata - 1); for (j = 1; j < data->nkeys; j++) printf(" %s (type %s size %d storage %d)\n", pool_id2str(repo->pool, data->keys[j].name), pool_id2str(repo->pool, data->keys[j].type), data->keys[j].size, data->keys[j].storage); if (data->localpool) @@ -178,18 +178,16 @@ dump_some_attrs(Repo *repo, Solvable *s) static int -loadcallback (Pool *pool, Repodata *data, void *vdata) +loadcallback(Pool *pool, Repodata *data, void *vdata) { FILE *fp = 0; int r; const char *location; -printf("LOADCALLBACK\n"); location = repodata_lookup_str(data, SOLVID_META, REPOSITORY_LOCATION); -printf("loc %s\n", location); if (!location || !with_attr) return 0; - fprintf (stderr, "Loading SOLV file %s\n", location); + fprintf (stderr, "[Loading SOLV file %s]\n", location); fp = fopen (location, "r"); if (!fp) { |