Permalink
Browse files

include VBD name when printing warning about closing paused/still ope…

…n VBD
  • Loading branch information...
1 parent 4017cc2 commit 1165f1f76dbe4dcbda741b93d4fce563e72b0ea1 @tmakatos tmakatos committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/tapdisk-control.c
@@ -815,7 +815,7 @@ tapdisk_control_close_image(struct tapdisk_ctl_conn *conn,
}
if (td_flag_test(vbd->state, TD_VBD_PAUSED))
- EPRINTF("warning: closing a paused VBD");
+ EPRINTF("warning: closing paused VBD %s", vbd->name);
if(vbd->nbdserver) {
tapdisk_nbdserver_pause(vbd->nbdserver);
@@ -825,7 +825,7 @@ tapdisk_control_close_image(struct tapdisk_ctl_conn *conn,
err = tapdisk_blktap_remove_device(vbd->tap);
if (err == -EBUSY)
- EPRINTF("device still open\n");
+ EPRINTF("device %s still open\n", vbd->name);
if (!err || err != -EBUSY)
break;

0 comments on commit 1165f1f

Please sign in to comment.