drbd: Improve error reporting in drbd_md_sync_page_io()
authorAndreas Gruenbacher <agruen@linbit.com>
Fri, 19 Aug 2011 11:47:31 +0000 (13:47 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:03 +0000 (16:58 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_actlog.c

index 34048e8441de3101670f695a927c2264ac38fa1b..4dd52088f2419476668d8ad2a9abc38281333b15 100644 (file)
@@ -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;
 }