From 379c5e721e91fddbabea7e5c330bcc9c951a609e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 19 Apr 2012 10:57:30 -0700 Subject: [PATCH] librbd: fix debug output for image resize Print old -> new, not new -> old. Signed-off-by: Sage Weil --- src/librbd.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librbd.cc b/src/librbd.cc index 79382b8e547d7..e5fc09d1f28a8 100644 --- a/src/librbd.cc +++ b/src/librbd.cc @@ -961,15 +961,15 @@ int resize_helper(ImageCtx *ictx, uint64_t size, ProgressContext& prog_ctx) { CephContext *cct = ictx->cct; if (size == ictx->header.image_size) { - ldout(cct, 2) << "no change in size (" << size << " -> " << ictx->header.image_size << ")" << dendl; + ldout(cct, 2) << "no change in size (" << ictx->header.image_size << " -> " << size << ")" << dendl; return 0; } if (size > ictx->header.image_size) { - ldout(cct, 2) << "expanding image " << size << " -> " << ictx->header.image_size << " objects" << dendl; + ldout(cct, 2) << "expanding image " << ictx->header.image_size << " -> " << size << " objects" << dendl; ictx->header.image_size = size; } else { - ldout(cct, 2) << "shrinking image " << size << " -> " << ictx->header.image_size << " objects" << dendl; + ldout(cct, 2) << "shrinking image " << ictx->header.image_size << " -> " << size << " objects" << dendl; trim_image(ictx->data_ctx, ictx->header, size, prog_ctx); ictx->header.image_size = size; } -- 2.39.5