From: walter Date: Sat, 10 May 2008 15:16:09 +0000 (+0000) Subject: b=15732 X-Git-Tag: v1_9_50~513 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5fb14d5f4556914b8b878daae2c70d003296a946;p=fs%2Flustre-release.git b=15732 i=adilger fix compile warnings which are treated as errors on Cray XT3 catamount build --- diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c index c21f8b0..f3813a3 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -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); } diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 4ab58bd..6dec67f 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -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); }