From 272c5df45db02b4e0eaa29649d14b7bdef8db9a4 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 28 May 2005 11:16:28 +0000 Subject: [PATCH] - minor debug messages fixes --- lustre/ldlm/ldlm_lib.c | 9 ++++----- lustre/mds/mds_lmv.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 72f81ee..38d9feb 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1123,11 +1123,10 @@ static int check_for_next_transno(struct obd_device *obd) wake_up = 1; } else if (queue_len + completed == max) { LASSERT(req->rq_reqmsg->transno >= next_transno); - if (req_transno > obd->obd_last_committed) - CDEBUG(D_ERROR, "waking for skipped transno (skip: " - LPD64", ql: %d, comp: %d, conn: %d, next: " - LPD64")\n", next_transno, queue_len, completed, - max, req_transno); + CDEBUG(req_transno > obd->obd_last_committed ? D_ERROR : D_HA, + "waking for skipped transno (skip: "LPD64 + ", ql: %d, comp: %d, conn: %d, next: "LPD64")\n", + next_transno, queue_len, completed, max, req_transno); obd->obd_next_recovery_transno = req_transno; wake_up = 1; } else if (queue_len == atomic_read(&obd->obd_req_replay_clients)) { diff --git a/lustre/mds/mds_lmv.c b/lustre/mds/mds_lmv.c index 8e7ba8b..e6ea5d8 100644 --- a/lustre/mds/mds_lmv.c +++ b/lustre/mds/mds_lmv.c @@ -936,7 +936,7 @@ int mds_choose_mdsnum(struct obd_device *obd, const char *name, int len, int fla __u64 count = lmv->desc.ld_tgt_count; i = do_div(nid, count); CWARN("client from %s creates top dir %*s on mds #%d\n", - ptlrpc_peernid2str(peer, peer_str), len, name, i); + ptlrpc_peernid2str(peer,peer_str), len, name, i+1); } } else if (mds->mds_md_exp) { lmv = &mds->mds_md_exp->exp_obd->u.lmv; -- 1.8.3.1