commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 43/98: libdiskfs: improve error reporting in diskfs_start_disk_pa


From: Samuel Thibault
Subject: [hurd] 43/98: libdiskfs: improve error reporting in diskfs_start_disk_pager
Date: Tue, 14 Jan 2014 02:00:01 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 460b6f2daff3c413de4312424d38cd50c481016f
Author: Justus Winter <address@hidden>
Date:   Mon Nov 25 16:58:59 2013 +0100

    libdiskfs: improve error reporting in diskfs_start_disk_pager
    
    * libdiskfs/disk-pager.c (diskfs_start_disk_pager): Improve error reporting.
---
 libdiskfs/disk-pager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c
index 8fe8f80..9a0d9d8 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]