summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-25 16:58:59 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 13:13:32 +0100
commit460b6f2daff3c413de4312424d38cd50c481016f (patch)
treef9d066b50f32e50a3812037616f3b8e33aef0e9c
parentc62b1edd42d9522d6277d5ca648f2e4a4214341c (diff)
libdiskfs: improve error reporting in diskfs_start_disk_pager
* libdiskfs/disk-pager.c (diskfs_start_disk_pager): Improve error reporting.
-rw-r--r--libdiskfs/disk-pager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c
index 8fe8f806..9a0d9d88 100644
--- a/libdiskfs/disk-pager.c
+++ b/libdiskfs/disk-pager.c
@@ -71,7 +71,8 @@ diskfs_start_disk_pager (struct user_pager_info *upi,
diskfs_disk_pager = pager_create (upi, pager_bucket,
may_cache, MEMORY_OBJECT_COPY_NONE,
notify_on_evict);
- assert (diskfs_disk_pager);
+ if (diskfs_disk_pager == NULL)
+ error (2, errno, "creating diskfs_disk_pager failed");
/* Get a port to the disk pager. */
disk_pager_port = pager_get_port (diskfs_disk_pager);