From 323a24cb50f65a6375f9cc80e9f4c092c4a8f4d3 Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Mon, 8 Mar 2010 17:21:41 +0200 Subject: [PATCH] osd-target: Fix debug print of CAPACITY_QUOTA use the llu() type-cast to comply with both 32 and 64 bit platforms. Signed-off-by: Boaz Harrosh --- osd-target/osd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osd-target/osd.c b/osd-target/osd.c index 3c9ae26..524020d 100644 --- a/osd-target/osd.c +++ b/osd-target/osd.c @@ -624,8 +624,8 @@ static int get_uiap(struct osd_device *osd, uint64_t pid, uint64_t oid, len = UIAP_USED_CAPACITY_LEN; get_dfile_name(path, osd->root, pid, oid); ret = statfs(path, &sfs); - printf("PARTITION_CAPACITY_QUOTA statfs(%s)=>%d size=%ld\n", - path, ret, sfs.f_blocks); + osd_debug("PARTITION_CAPACITY_QUOTA statfs(%s)=>%d size=0x%llx\n", + path, ret, llu(sfs.f_blocks)); if (ret != 0) return OSD_ERROR; sz = sfs.f_blocks * BLOCK_SZ;