From 5fb14d5f4556914b8b878daae2c70d003296a946 Mon Sep 17 00:00:00 2001 From: walter Date: Sat, 10 May 2008 15:16:09 +0000 Subject: [PATCH] b=15732 i=adilger fix compile warnings which are treated as errors on Cray XT3 catamount build --- lustre/lov/lov_qos.c | 5 +++-- lustre/mdc/mdc_request.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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); } -- 1.8.3.1