summaryrefslogtreecommitdiffstats
path: root/lib/libufs/inode.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2003-01-18 04:22:14 +0000
committerjmallett <jmallett@FreeBSD.org>2003-01-18 04:22:14 +0000
commit7284e7e47fdb035b53f5295db77ccf14025b4d16 (patch)
tree42776587cf0e4fc2638f7d27ea614b94fbea2925 /lib/libufs/inode.c
parent406bb0cfa57d3d013f9ff0e57f4c2e50b21decaa (diff)
downloadFreeBSD-src-7284e7e47fdb035b53f5295db77ccf14025b4d16.zip
FreeBSD-src-7284e7e47fdb035b53f5295db77ccf14025b4d16.tar.gz
Nuke dumb error reporting code, people can just use disk::d_error. Unify the
DEBUG and d_error initialisation into an ERROR macro, which can both trace and set the d_error field. Much a more meaningful thing, I should say.
Diffstat (limited to 'lib/libufs/inode.c')
-rw-r--r--lib/libufs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libufs/inode.c b/lib/libufs/inode.c
index ba3b29e..bce5567 100644
--- a/lib/libufs/inode.c
+++ b/lib/libufs/inode.c
@@ -55,7 +55,7 @@ getino(struct uufsd *disk, void **dino, ino_t inode, int *mode)
struct ufs2_dinode *dp2;
struct fs *fs;
- DEBUG(NULL);
+ ERROR(disk, NULL);
fs = &disk->d_fs;
inoblock = disk->d_inoblock;
@@ -65,7 +65,7 @@ getino(struct uufsd *disk, void **dino, ino_t inode, int *mode)
if (inoblock == NULL) {
inoblock = malloc(fs->fs_bsize);
if (inoblock == NULL) {
- DEBUG(NULL);
+ ERROR(disk, "unable to allocate inode block");
return -1;
}
disk->d_inoblock = inoblock;
@@ -90,6 +90,6 @@ gotit: switch (disk->d_ufs) {
default:
break;
}
- DEBUG("unknown UFS filesystem");
+ ERROR(disk, "unknown UFS filesystem type");
return -1;
}
OpenPOWER on IntegriCloud