Whamcloud - gitweb
LU-13308 mdc: support additional flags for OBD_IOC_CHLG_POLL ioctl
[fs/lustre-release.git] / lustre / utils / ll_decode_filter_fid.c
index eb86e1c..f395849 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  *
  * lustre/utils/ll_decode_filter_fid.c
  *
@@ -45,9 +44,6 @@
 #include <asm/byteorder.h>
 #include <linux/lustre/lustre_user.h>
 
-#define PFID_STRIPE_IDX_BITS   16
-#define PFID_STRIPE_COUNT_MASK ((1 << PFID_STRIPE_IDX_BITS) - 1)
-
 #if __BYTE_ORDER == __BIG_ENDIAN
 static void lustre_swab_lu_fid(struct lu_fid *fid)
 {
@@ -134,8 +130,8 @@ int main(int argc, char *argv[])
                                               "component_start=%llu "
                                               "component_end=%llu",
                                               loa->loa_comp_id,
-                                              loa->loa_comp_start,
-                                              loa->loa_comp_end);
+                                              (unsigned long long)loa->loa_comp_start,
+                                              (unsigned long long)loa->loa_comp_end);
                                printf("\n");
                                continue;
                        }
@@ -187,7 +183,9 @@ int main(int argc, char *argv[])
                                       "component_start=%llu "
                                       "component_end=%llu",
                                       __le32_to_cpu(ol->ol_comp_id),
+                                      (unsigned long long)
                                       __le64_to_cpu(ol->ol_comp_start),
+                                      (unsigned long long)
                                       __le64_to_cpu(ol->ol_comp_end));
                }
                if (size >= sizeof(struct filter_fid))