From 70043fba26c5412c4d82340d22bfae1183cfb6a5 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 3 Oct 2003 16:14:31 +0000 Subject: [PATCH] Print hex objids with leading 0x in lfind/lfs find. --- lustre/utils/liblustreapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ? " *" : ""); } } -- 1.8.3.1