summaryrefslogtreecommitdiffstats
path: root/lib/libufs
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-07-01 18:19:20 +0000
committerjmallett <jmallett@FreeBSD.org>2002-07-01 18:19:20 +0000
commit1c27521e2987e7d265f8b33bff58693509655aa5 (patch)
tree898e518e3f1cf0ddc9c17bf73443bfa4480d7378 /lib/libufs
parent617eb0d7c2bea7cfff90b77cca07feec93b6db6c (diff)
downloadFreeBSD-src-1c27521e2987e7d265f8b33bff58693509655aa5.zip
FreeBSD-src-1c27521e2987e7d265f8b33bff58693509655aa5.tar.gz
In getino, have our DEBUG message in the unhandled case mention that it
does not know what sort of UFS filesystem this is. Add some DEBUG(NULL)'s to function entry points.
Diffstat (limited to 'lib/libufs')
-rw-r--r--lib/libufs/inode.c2
-rw-r--r--lib/libufs/sblock.c2
-rw-r--r--lib/libufs/type.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/libufs/inode.c b/lib/libufs/inode.c
index 770f217..e823cdb 100644
--- a/lib/libufs/inode.c
+++ b/lib/libufs/inode.c
@@ -90,6 +90,6 @@ gotit: switch (disk->d_ufs) {
default:
break;
}
- DEBUG(NULL);
+ DEBUG("unknown UFS filesystem");
return -1;
}
diff --git a/lib/libufs/sblock.c b/lib/libufs/sblock.c
index 278c8ef..aaac7b4 100644
--- a/lib/libufs/sblock.c
+++ b/lib/libufs/sblock.c
@@ -96,6 +96,8 @@ sbwrite(struct uufsd *disk, int all)
struct fs *fs;
int i, rofd;
+ DEBUG(NULL);
+
fs = &disk->d_fs;
rofd = disk->d_fd;
diff --git a/lib/libufs/type.c b/lib/libufs/type.c
index cdedf3c..220d34b 100644
--- a/lib/libufs/type.c
+++ b/lib/libufs/type.c
@@ -94,6 +94,8 @@ ufs_disk_fillout(struct uufsd *disk, const char *name)
{
int fd;
+ DEBUG(NULL);
+
fd = open(name, O_RDONLY);
if (fd == -1) {
DEBUG("open");
OpenPOWER on IntegriCloud