Whamcloud - gitweb
b=15732
authorwalter <walter>
Fri, 9 May 2008 19:35:57 +0000 (19:35 +0000)
committerwalter <walter>
Fri, 9 May 2008 19:35:57 +0000 (19:35 +0000)
i=adilger

land attachment 16772 - fixes for misc new catamount build warnings
which are getting treated as errors

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

index aa3d1ae..d3965ab 100644 (file)
@@ -679,10 +679,10 @@ int ldlm_cli_enqueue(struct obd_export *exp, struct ptlrpc_request **reqp,
         } else {
                 req = *reqp;
                 LASSERTF(lustre_msg_buflen(req->rq_reqmsg, DLM_LOCKREQ_OFF) >=
-                         sizeof(*body), "buflen[%d] = %d, not "LPSZ"\n",
+                         sizeof(*body), "buflen[%d] = %d, not %d\n",
                          DLM_LOCKREQ_OFF,
                          lustre_msg_buflen(req->rq_reqmsg, DLM_LOCKREQ_OFF),
-                         sizeof(*body));
+                         (int)sizeof(*body));
         }
 
         lock->l_conn_export = exp;
index 19d0688..cf61023 100644 (file)
@@ -622,8 +622,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 0d40904..15ada84 100644 (file)
@@ -450,7 +450,7 @@ int mdc_req2lustre_md(struct ptlrpc_request *req, int offset,
 
                 if (rc < sizeof(*md->lsm)) {
                         CERROR ("lsm size too small:  rc < sizeof (*md->lsm) "
-                                "(%d < "LPSZ")\n", rc, sizeof(*md->lsm));
+                                "(%d < %d)\n", rc, (int)sizeof(*md->lsm));
                         GOTO(err_out, rc = -EPROTO);
                 }
                 rc = 0;