summaryrefslogtreecommitdiff
path: root/src/librbd.cc
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2012-04-19 10:57:30 -0700
committerSage Weil <sage@newdream.net>2012-04-20 16:51:00 -0700
commit379c5e721e91fddbabea7e5c330bcc9c951a609e (patch)
tree79e94f0bcd063307beff8a461cace0c69984c20b /src/librbd.cc
parentdd78c3df65e2f92276b2bd31d0a879756f2ce5a8 (diff)
downloadceph-379c5e721e91fddbabea7e5c330bcc9c951a609e.tar.gz
librbd: fix debug output for image resize
Print old -> new, not new -> old. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/librbd.cc')
-rw-r--r--src/librbd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librbd.cc b/src/librbd.cc
index 79382b8e547..e5fc09d1f28 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;
}