Whamcloud - gitweb
Print hex objids with leading 0x in lfind/lfs find.
authoradilger <adilger>
Fri, 3 Oct 2003 16:14:31 +0000 (16:14 +0000)
committeradilger <adilger>
Fri, 3 Oct 2003 16:14:31 +0000 (16:14 +0000)
lustre/utils/liblustreapi.c

index 499eab1..d0451ba 100644 (file)
@@ -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 ? " *" : "");
                        }
                }