summaryrefslogtreecommitdiff
path: root/tools/dumpsolv.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-03-15 14:07:54 +0100
committerMichael Schroeder <mls@suse.de>2012-03-15 14:07:54 +0100
commitc25eec5f8599743353a0a2d7514d8b097a7c7548 (patch)
tree4135d8b06c80c8a4664bdfb27c2abd20bc776b3a /tools/dumpsolv.c
parent8f7d6ecf631c0a0f9e234bc28e16b5f9f190b799 (diff)
downloadlibsolv-c25eec5f8599743353a0a2d7514d8b097a7c7548.tar.gz
libsolv-c25eec5f8599743353a0a2d7514d8b097a7c7548.tar.bz2
libsolv-c25eec5f8599743353a0a2d7514d8b097a7c7548.zip
- dumpsolv: num is unsigned, also support reldeps as ids
Diffstat (limited to 'tools/dumpsolv.c')
-rw-r--r--tools/dumpsolv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dumpsolv.c b/tools/dumpsolv.c
index 4df9d8c..c143edd 100644
--- a/tools/dumpsolv.c
+++ b/tools/dumpsolv.c
@@ -72,7 +72,7 @@ dump_attr(Repo *repo, Repodata *data, Repokey *key, KeyValue *kv)
if (data && data->localpool)
kv->str = stringpool_id2str(&data->spool, kv->id);
else
- kv->str = pool_id2str(repo->pool, kv->id);
+ kv->str = pool_dep2str(repo->pool, kv->id);
printf("%s: %s\n", keyname, kv->str);
break;
case REPOKEY_TYPE_CONSTANTID:
@@ -100,7 +100,7 @@ dump_attr(Repo *repo, Repodata *data, Repokey *key, KeyValue *kv)
case REPOKEY_TYPE_U32:
case REPOKEY_TYPE_NUM:
case REPOKEY_TYPE_CONSTANT:
- printf("%s: %d\n", keyname, kv->num);
+ printf("%s: %u\n", keyname, kv->num);
break;
case REPOKEY_TYPE_BINARY:
if (kv->num)