[sheepdog] [PATCH 4/4] store/plain_store: use epoch numbers as decimals
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Sep 14 10:24:29 CEST 2012
This makes stale object more human readable because we use decimal
numbers to print epochs in other places.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/plain_store.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sheep/plain_store.c b/sheep/plain_store.c
index 5962ac2..e07e934 100644
--- a/sheep/plain_store.c
+++ b/sheep/plain_store.c
@@ -45,7 +45,7 @@ static int get_tmp_obj_path(uint64_t oid, char *path)
static int get_stale_obj_path(uint64_t oid, uint32_t epoch, char *path)
{
- return sprintf(path, "%s/%016"PRIx64".%"PRIx32, stale_dir, oid, epoch);
+ return sprintf(path, "%s/%016"PRIx64".%"PRIu32, stale_dir, oid, epoch);
}
/* If cleanup is true, temporary objects will be removed */
--
1.7.2.5
More information about the sheepdog
mailing list