diff options
author | Justus Winter <justus@gnupg.org> | 2017-06-19 21:20:57 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-05 18:42:22 +0200 |
commit | 835b293d35a209d38047126443d41fa7090daa4c (patch) | |
tree | 5bf956895e6030f91cd618fb191b2151f6d25423 /fatfs/main.c | |
parent | dc0b5a43224999223a246870912b0f292b1980e9 (diff) | |
download | hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.gz hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.bz2 hurd-835b293d35a209d38047126443d41fa7090daa4c.zip |
Use our own variant of 'assert' and 'assert_perror'.
Our variants print stack traces on failures. This will make locating
errors much easier.
Diffstat (limited to 'fatfs/main.c')
-rw-r--r-- | fatfs/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fatfs/main.c b/fatfs/main.c index 00c56bc5..f0b3aa88 100644 --- a/fatfs/main.c +++ b/fatfs/main.c @@ -189,7 +189,7 @@ fetch_root () break; default: - assert(!"don't know how to set size of root dir"); + assert_backtrace (!"don't know how to set size of root dir"); }; /* The magic vi_key {0, 1} for the root directory is distinguished @@ -197,14 +197,14 @@ fetch_root () normal virtual inode keys (in the dir_inode value). Enter the disknode into the inode table. */ err = vi_new ((struct vi_key) {0, 1}, &inum, &ctx.inode); - assert_perror (err); + assert_perror_backtrace (err); /* Allocate a node for the root directory disknode in diskfs_root_node. */ if (!err) err = diskfs_cached_lookup_context (inum, &diskfs_root_node, &ctx); - assert_perror (err); + assert_perror_backtrace (err); pthread_mutex_unlock (&diskfs_root_node->lock); } |