Skip to content

Commit

Permalink
osd-target: Fix debug print of CAPACITY_QUOTA
Browse files Browse the repository at this point in the history
use the llu() type-cast to comply with both 32 and 64 bit
platforms.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
  • Loading branch information
Boaz Harrosh committed Mar 15, 2010
1 parent 34f6296 commit 323a24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osd-target/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 323a24c

Please sign in to comment.