From: Andreas Gruenbacher Date: Fri, 19 Aug 2011 11:47:31 +0000 (+0200) Subject: drbd: Improve error reporting in drbd_md_sync_page_io() X-Git-Tag: firefly_0821_release~3680^2~1419^2~18^2~144 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=935be260c1e92a1d9c251973d866b68bf2c20f12;p=firefly-linux-kernel-4.4.55.git drbd: Improve error reporting in drbd_md_sync_page_io() Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c index 34048e8441de..4dd52088f241 100644 --- a/drivers/block/drbd/drbd_actlog.c +++ b/drivers/block/drbd/drbd_actlog.c @@ -202,8 +202,8 @@ int drbd_md_sync_page_io(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, err = _drbd_md_sync_page_io(mdev, bdev, iop, sector, rw, MD_BLOCK_SIZE); if (err) { - dev_err(DEV, "drbd_md_sync_page_io(,%llus,%s) failed!\n", - (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ"); + dev_err(DEV, "drbd_md_sync_page_io(,%llus,%s) failed with error %d\n", + (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ", err); } return err; }