Whamcloud - gitweb
b=15732
authorwalter <walter>
Sat, 10 May 2008 15:16:09 +0000 (15:16 +0000)
committerwalter <walter>
Sat, 10 May 2008 15:16:09 +0000 (15:16 +0000)
i=adilger

fix compile warnings which are treated as errors on Cray XT3 catamount
build

lustre/lov/lov_qos.c
lustre/mdc/mdc_request.c

index c21f8b0..f3813a3 100644 (file)
@@ -634,8 +634,9 @@ repeat_find:
          *
          * We can only get here if lsm_stripe_count was originally > 1.
          */
-        CERROR("can't lstripe objid "LPX64": have "LPSZ" want %u\n",
-               lsm->lsm_object_id, idx_pos - idx_arr, lsm->lsm_stripe_count);
+        CERROR("can't lstripe objid "LPX64": have %d want %u\n",
+               lsm->lsm_object_id, (int)(idx_pos - idx_arr),
+               lsm->lsm_stripe_count);
         RETURN(-EFBIG);
 }
 
index 4ab58bd..6dec67f 100644 (file)
@@ -506,8 +506,8 @@ int mdc_get_lustre_md(struct obd_export *exp, struct ptlrpc_request *req,
 
                 if (rc < sizeof(*md->lsm)) {
                         CDEBUG(D_INFO, "lsm size too small: "
-                               "rc < sizeof (*md->lsm) (%d < "LPSZ")\n",
-                               rc, sizeof(*md->lsm));
+                               "rc < sizeof (*md->lsm) (%d < %d)\n",
+                               rc, (int)sizeof(*md->lsm));
                         GOTO(out, rc = -EPROTO);
                 }