From c25eec5f8599743353a0a2d7514d8b097a7c7548 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 15 Mar 2012 14:07:54 +0100 Subject: [PATCH] - dumpsolv: num is unsigned, also support reldeps as ids --- tools/dumpsolv.c | 4 ++-- 1 file 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) -- 2.7.4