From: adilger Date: Fri, 3 Oct 2003 16:14:31 +0000 (+0000) Subject: Print hex objids with leading 0x in lfind/lfs find. X-Git-Tag: v1_7_0_51~2^7~475 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=70043fba26c5412c4d82340d22bfae1183cfb6a5;p=fs%2Flustre-release.git Print hex objids with leading 0x in lfind/lfs find. --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 499eab1..d0451ba 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -276,7 +276,7 @@ static void process_file(DIR *dir, char *dname, char *fname, struct find_param * oid = param->lmm->lmm_object_id; if (header) printf("\tobdidx\t\t objid\t\tobjid\n"); - printf("\t%6u\t%14llu\t%13llx\n", 0, oid, oid); + printf("\t%6u\t%14llu\t%#13llx\n", 0, oid, oid); } else for (i = 0; i < param->lmm->lmm_ost_count; i++, ost++) { ost %= param->lmm->lmm_ost_count; @@ -285,7 +285,7 @@ static void process_file(DIR *dir, char *dname, char *fname, struct find_param * printf("\tobdidx\t\t objid\t\tobjid\n"); header = 0; } - printf("\t%6u\t%14llu\t%13llx%s\n", ost, + printf("\t%6u\t%14llu\t%#13llx%s\n", ost, oid, oid, param->obdindex == ost ? " *" : ""); } }