diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-05 00:18:49 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-05 00:18:49 -0800 |
| commit | 1ea864f1c53bc771294e61cf9be43b1d22e78f4c (patch) | |
| tree | de928ec3d1e22abf7b0963e59092152daa5a2ecb /fs/devfs | |
| parent | 2f886464aa00cd9eb9cf46c8c155a24a752bb317 (diff) | |
v2.5.2.6 -> v2.5.3
- Doug Ledford: i810 audio driver update
- Evgeniy Polyakov: update various SCSI drivers to new locking
- David Howells: syscall latency improvement, try 2
- Francois Romieu: dscc4 driver update
- Patrick Mochel: driver model fixes
- Andrew Morton: clean up a few details in ext3 inode initialization
- Pete Wyckoff: make x86 machine check print out right address..
- Hans Reiser: reiserfs update
- Richard Gooch: devfs update
- Greg KH: USB updates
- Dave Jones: PNPBIOS
- Nathan Scott: extended attributes
- Corey Minyard: clean up zlib duplication (triplication..)
Diffstat (limited to 'fs/devfs')
| -rw-r--r-- | fs/devfs/base.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c index e7b2eec05fe2..89a698a63ea6 100644 --- a/fs/devfs/base.c +++ b/fs/devfs/base.c @@ -608,6 +608,10 @@ Fixed deadlock bug in <devfs_d_revalidate_wait>. Tag VFS deletable in <devfs_mk_symlink> if handle ignored. v1.10 + 20020129 Richard Gooch <rgooch@atnf.csiro.au> + Added KERN_* to remaining messages. + Cleaned up declaration of <stat_read>. + v1.11 */ #include <linux/types.h> #include <linux/errno.h> @@ -640,7 +644,7 @@ #include <asm/bitops.h> #include <asm/atomic.h> -#define DEVFS_VERSION "1.10 (20020120)" +#define DEVFS_VERSION "1.11 (20020129)" #define DEVFS_NAME "devfs" @@ -848,8 +852,8 @@ static int devfsd_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg); static int devfsd_close (struct inode *inode, struct file *file); #ifdef CONFIG_DEVFS_DEBUG -static int stat_read (struct file *file, char *buf, size_t len, - loff_t *ppos); +static ssize_t stat_read (struct file *file, char *buf, size_t len, + loff_t *ppos); static struct file_operations stat_fops = { read: stat_read, @@ -2431,10 +2435,10 @@ static int check_disc_changed (struct devfs_entry *de) if (bdops->check_media_change == NULL) goto out; if ( !bdops->check_media_change (dev) ) goto out; retval = 1; - printk ( KERN_DEBUG "VFS: Disk change detected on device %s\n", + printk (KERN_DEBUG "VFS: Disk change detected on device %s\n", kdevname (dev) ); - if (invalidate_device(dev, 0)) - printk("VFS: busy inodes on changed media..\n"); + if ( invalidate_device (dev, 0) ) + printk (KERN_WARNING "VFS: busy inodes on changed media..\n"); /* Ugly hack to disable messages about unable to read partition table */ tmp = warn_no_part; warn_no_part = 0; @@ -3237,7 +3241,7 @@ static struct super_block *devfs_read_super (struct super_block *sb, return sb; out_no_root: - printk ("devfs_read_super: get root inode failed\n"); + PRINTK ("(): get root inode failed\n"); if (root_inode) iput (root_inode); return NULL; } /* End Function devfs_read_super */ @@ -3464,7 +3468,7 @@ static int __init init_devfs_fs (void) { int err; - printk ("%s: v%s Richard Gooch (rgooch@atnf.csiro.au)\n", + printk (KERN_INFO "%s: v%s Richard Gooch (rgooch@atnf.csiro.au)\n", DEVFS_NAME, DEVFS_VERSION); devfsd_buf_cache = kmem_cache_create ("devfsd_event", sizeof (struct devfsd_buf_entry), @@ -3472,9 +3476,9 @@ static int __init init_devfs_fs (void) if (!devfsd_buf_cache) OOPS ("(): unable to allocate event slab\n"); #ifdef CONFIG_DEVFS_DEBUG devfs_debug = devfs_debug_init; - printk ("%s: devfs_debug: 0x%0x\n", DEVFS_NAME, devfs_debug); + printk (KERN_INFO "%s: devfs_debug: 0x%0x\n", DEVFS_NAME, devfs_debug); #endif - printk ("%s: boot_options: 0x%0x\n", DEVFS_NAME, boot_options); + printk (KERN_INFO "%s: boot_options: 0x%0x\n", DEVFS_NAME, boot_options); err = register_filesystem (&devfs_fs_type); if (!err) { @@ -3491,8 +3495,8 @@ void __init mount_devfs_fs (void) if ( !(boot_options & OPTION_MOUNT) ) return; err = do_mount ("none", "/dev", "devfs", 0, ""); - if (err == 0) printk ("Mounted devfs on /dev\n"); - else printk ("Warning: unable to mount devfs, err: %d\n", err); + if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n"); + else PRINTK ("(): unable to mount devfs, err: %d\n", err); } /* End Function mount_devfs_fs */ module_init(init_devfs_fs) |
