Commit 8a78d593 authored by Ian Kent's avatar Ian Kent Committed by Linus Torvalds

autofs4: use pr_xxx() macros directly for logging

Use the standard pr_xxx() log macros directly for log prints instead of
the AUTOFS_XXX() macros.
Signed-off-by: default avatarIan Kent <ikent@redhat.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 90967c87
...@@ -35,17 +35,10 @@ ...@@ -35,17 +35,10 @@
/* #define DEBUG */ /* #define DEBUG */
#define DPRINTK(fmt, ...) \ #ifdef pr_fmt
pr_debug(KBUILD_MODNAME ":pid:%d:%s: " fmt, \ #undef pr_fmt
current->pid, __func__, ##__VA_ARGS__) #endif
#define pr_fmt(fmt) KBUILD_MODNAME ":pid:%d:%s: " fmt, current->pid, __func__
#define AUTOFS_WARN(fmt, ...) \
pr_warn(KBUILD_MODNAME ":pid:%d:%s: " fmt, \
current->pid, __func__, ##__VA_ARGS__)
#define AUTOFS_ERROR(fmt, ...) \
pr_err(KBUILD_MODNAME ":pid:%d:%s: " fmt, \
current->pid, __func__, ##__VA_ARGS__)
/* /*
* Unified info structure. This is pointed to by both the dentry and * Unified info structure. This is pointed to by both the dentry and
......
...@@ -74,11 +74,11 @@ static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) ...@@ -74,11 +74,11 @@ static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param)
if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) ||
(param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) {
AUTOFS_WARN("ioctl control interface version mismatch: " pr_warn("ioctl control interface version mismatch: "
"kernel(%u.%u), user(%u.%u), cmd(%d)\n", "kernel(%u.%u), user(%u.%u), cmd(%d)\n",
AUTOFS_DEV_IOCTL_VERSION_MAJOR, AUTOFS_DEV_IOCTL_VERSION_MAJOR,
AUTOFS_DEV_IOCTL_VERSION_MINOR, AUTOFS_DEV_IOCTL_VERSION_MINOR,
param->ver_major, param->ver_minor, cmd); param->ver_major, param->ver_minor, cmd);
err = -EINVAL; err = -EINVAL;
} }
...@@ -129,15 +129,15 @@ static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) ...@@ -129,15 +129,15 @@ static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param)
err = check_dev_ioctl_version(cmd, param); err = check_dev_ioctl_version(cmd, param);
if (err) { if (err) {
AUTOFS_WARN("invalid device control module version " pr_warn("invalid device control module version "
"supplied for cmd(0x%08x)\n", cmd); "supplied for cmd(0x%08x)\n", cmd);
goto out; goto out;
} }
if (param->size > sizeof(*param)) { if (param->size > sizeof(*param)) {
err = invalid_str(param->path, param->size - sizeof(*param)); err = invalid_str(param->path, param->size - sizeof(*param));
if (err) { if (err) {
AUTOFS_WARN( pr_warn(
"path string terminator missing for cmd(0x%08x)\n", "path string terminator missing for cmd(0x%08x)\n",
cmd); cmd);
goto out; goto out;
...@@ -145,8 +145,8 @@ static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) ...@@ -145,8 +145,8 @@ static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param)
err = check_name(param->path); err = check_name(param->path);
if (err) { if (err) {
AUTOFS_WARN("invalid path supplied for cmd(0x%08x)\n", pr_warn("invalid path supplied for cmd(0x%08x)\n",
cmd); cmd);
goto out; goto out;
} }
} }
...@@ -373,7 +373,7 @@ static int autofs_dev_ioctl_setpipefd(struct file *fp, ...@@ -373,7 +373,7 @@ static int autofs_dev_ioctl_setpipefd(struct file *fp,
new_pid = get_task_pid(current, PIDTYPE_PGID); new_pid = get_task_pid(current, PIDTYPE_PGID);
if (ns_of_pid(new_pid) != ns_of_pid(sbi->oz_pgrp)) { if (ns_of_pid(new_pid) != ns_of_pid(sbi->oz_pgrp)) {
AUTOFS_WARN("not allowed to change PID namespace\n"); pr_warn("not allowed to change PID namespace\n");
err = -EINVAL; err = -EINVAL;
goto out; goto out;
} }
...@@ -661,7 +661,7 @@ static int _autofs_dev_ioctl(unsigned int command, ...@@ -661,7 +661,7 @@ static int _autofs_dev_ioctl(unsigned int command,
fn = lookup_dev_ioctl(cmd); fn = lookup_dev_ioctl(cmd);
if (!fn) { if (!fn) {
AUTOFS_WARN("unknown command 0x%08x\n", command); pr_warn("unknown command 0x%08x\n", command);
return -ENOTTY; return -ENOTTY;
} }
...@@ -754,7 +754,7 @@ int __init autofs_dev_ioctl_init(void) ...@@ -754,7 +754,7 @@ int __init autofs_dev_ioctl_init(void)
r = misc_register(&_autofs_dev_ioctl_misc); r = misc_register(&_autofs_dev_ioctl_misc);
if (r) { if (r) {
AUTOFS_ERROR("misc_register failed for control device\n"); pr_err("misc_register failed for control device\n");
return r; return r;
} }
......
...@@ -37,7 +37,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry) ...@@ -37,7 +37,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry)
struct path path = {.mnt = mnt, .dentry = dentry}; struct path path = {.mnt = mnt, .dentry = dentry};
int status = 1; int status = 1;
DPRINTK("dentry %p %pd\n", dentry, dentry); pr_debug("dentry %p %pd\n", dentry, dentry);
path_get(&path); path_get(&path);
...@@ -63,7 +63,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry) ...@@ -63,7 +63,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry)
status = 0; status = 0;
done: done:
DPRINTK("returning = %d\n", status); pr_debug("returning = %d\n", status);
path_put(&path); path_put(&path);
return status; return status;
} }
...@@ -189,7 +189,7 @@ static int autofs4_direct_busy(struct vfsmount *mnt, ...@@ -189,7 +189,7 @@ static int autofs4_direct_busy(struct vfsmount *mnt,
unsigned long timeout, unsigned long timeout,
int do_now) int do_now)
{ {
DPRINTK("top %p %pd\n", top, top); pr_debug("top %p %pd\n", top, top);
/* If it's busy update the expiry counters */ /* If it's busy update the expiry counters */
if (!may_umount_tree(mnt)) { if (!may_umount_tree(mnt)) {
...@@ -220,7 +220,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt, ...@@ -220,7 +220,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt,
struct autofs_info *top_ino = autofs4_dentry_ino(top); struct autofs_info *top_ino = autofs4_dentry_ino(top);
struct dentry *p; struct dentry *p;
DPRINTK("top %p %pd\n", top, top); pr_debug("top %p %pd\n", top, top);
/* Negative dentry - give up */ /* Negative dentry - give up */
if (!simple_positive(top)) if (!simple_positive(top))
...@@ -228,7 +228,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt, ...@@ -228,7 +228,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt,
p = NULL; p = NULL;
while ((p = get_next_positive_dentry(p, top))) { while ((p = get_next_positive_dentry(p, top))) {
DPRINTK("dentry %p %pd\n", p, p); pr_debug("dentry %p %pd\n", p, p);
/* /*
* Is someone visiting anywhere in the subtree ? * Is someone visiting anywhere in the subtree ?
...@@ -274,11 +274,11 @@ static struct dentry *autofs4_check_leaves(struct vfsmount *mnt, ...@@ -274,11 +274,11 @@ static struct dentry *autofs4_check_leaves(struct vfsmount *mnt,
{ {
struct dentry *p; struct dentry *p;
DPRINTK("parent %p %pd\n", parent, parent); pr_debug("parent %p %pd\n", parent, parent);
p = NULL; p = NULL;
while ((p = get_next_positive_dentry(p, parent))) { while ((p = get_next_positive_dentry(p, parent))) {
DPRINTK("dentry %p %pd\n", p, p); pr_debug("dentry %p %pd\n", p, p);
if (d_mountpoint(p)) { if (d_mountpoint(p)) {
/* Can we umount this guy */ /* Can we umount this guy */
...@@ -363,7 +363,7 @@ static struct dentry *should_expire(struct dentry *dentry, ...@@ -363,7 +363,7 @@ static struct dentry *should_expire(struct dentry *dentry,
* offset (autofs-5.0+). * offset (autofs-5.0+).
*/ */
if (d_mountpoint(dentry)) { if (d_mountpoint(dentry)) {
DPRINTK("checking mountpoint %p %pd\n", dentry, dentry); pr_debug("checking mountpoint %p %pd\n", dentry, dentry);
/* Can we umount this guy */ /* Can we umount this guy */
if (autofs4_mount_busy(mnt, dentry)) if (autofs4_mount_busy(mnt, dentry))
...@@ -376,7 +376,7 @@ static struct dentry *should_expire(struct dentry *dentry, ...@@ -376,7 +376,7 @@ static struct dentry *should_expire(struct dentry *dentry,
} }
if (d_really_is_positive(dentry) && d_is_symlink(dentry)) { if (d_really_is_positive(dentry) && d_is_symlink(dentry)) {
DPRINTK("checking symlink %p %pd\n", dentry, dentry); pr_debug("checking symlink %p %pd\n", dentry, dentry);
/* /*
* A symlink can't be "busy" in the usual sense so * A symlink can't be "busy" in the usual sense so
* just check last used for expire timeout. * just check last used for expire timeout.
...@@ -473,7 +473,7 @@ struct dentry *autofs4_expire_indirect(struct super_block *sb, ...@@ -473,7 +473,7 @@ struct dentry *autofs4_expire_indirect(struct super_block *sb,
return NULL; return NULL;
found: found:
DPRINTK("returning %p %pd\n", expired, expired); pr_debug("returning %p %pd\n", expired, expired);
ino->flags |= AUTOFS_INF_EXPIRING; ino->flags |= AUTOFS_INF_EXPIRING;
smp_mb(); smp_mb();
ino->flags &= ~AUTOFS_INF_NO_RCU; ino->flags &= ~AUTOFS_INF_NO_RCU;
...@@ -505,12 +505,12 @@ int autofs4_expire_wait(struct dentry *dentry, int rcu_walk) ...@@ -505,12 +505,12 @@ int autofs4_expire_wait(struct dentry *dentry, int rcu_walk)
if (ino->flags & AUTOFS_INF_EXPIRING) { if (ino->flags & AUTOFS_INF_EXPIRING) {
spin_unlock(&sbi->fs_lock); spin_unlock(&sbi->fs_lock);
DPRINTK("waiting for expire %p name=%pd\n", dentry, dentry); pr_debug("waiting for expire %p name=%pd\n", dentry, dentry);
status = autofs4_wait(sbi, dentry, NFY_NONE); status = autofs4_wait(sbi, dentry, NFY_NONE);
wait_for_completion(&ino->expire_complete); wait_for_completion(&ino->expire_complete);
DPRINTK("expire done status=%d\n", status); pr_debug("expire done status=%d\n", status);
if (d_unhashed(dentry)) if (d_unhashed(dentry))
return -EAGAIN; return -EAGAIN;
......
...@@ -60,7 +60,7 @@ void autofs4_kill_sb(struct super_block *sb) ...@@ -60,7 +60,7 @@ void autofs4_kill_sb(struct super_block *sb)
put_pid(sbi->oz_pgrp); put_pid(sbi->oz_pgrp);
} }
DPRINTK("shutting down\n"); pr_debug("shutting down\n");
kill_litter_super(sb); kill_litter_super(sb);
if (sbi) if (sbi)
kfree_rcu(sbi, rcu); kfree_rcu(sbi, rcu);
...@@ -221,7 +221,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) ...@@ -221,7 +221,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
if (!sbi) if (!sbi)
return -ENOMEM; return -ENOMEM;
DPRINTK("starting up, sbi = %p\n", sbi); pr_debug("starting up, sbi = %p\n", sbi);
s->s_fs_info = sbi; s->s_fs_info = sbi;
sbi->magic = AUTOFS_SBI_MAGIC; sbi->magic = AUTOFS_SBI_MAGIC;
...@@ -270,14 +270,14 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) ...@@ -270,14 +270,14 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
if (parse_options(data, &pipefd, &root_inode->i_uid, &root_inode->i_gid, if (parse_options(data, &pipefd, &root_inode->i_uid, &root_inode->i_gid,
&pgrp, &pgrp_set, &sbi->type, &sbi->min_proto, &pgrp, &pgrp_set, &sbi->type, &sbi->min_proto,
&sbi->max_proto)) { &sbi->max_proto)) {
AUTOFS_ERROR("called with bogus options\n"); pr_err("called with bogus options\n");
goto fail_dput; goto fail_dput;
} }
if (pgrp_set) { if (pgrp_set) {
sbi->oz_pgrp = find_get_pid(pgrp); sbi->oz_pgrp = find_get_pid(pgrp);
if (!sbi->oz_pgrp) { if (!sbi->oz_pgrp) {
AUTOFS_ERROR("could not find process group %d\n", pr_err("could not find process group %d\n",
pgrp); pgrp);
goto fail_dput; goto fail_dput;
} }
...@@ -294,10 +294,10 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) ...@@ -294,10 +294,10 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
/* Couldn't this be tested earlier? */ /* Couldn't this be tested earlier? */
if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION || if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION ||
sbi->min_proto > AUTOFS_MAX_PROTO_VERSION) { sbi->min_proto > AUTOFS_MAX_PROTO_VERSION) {
AUTOFS_ERROR("kernel does not match daemon version " pr_err("kernel does not match daemon version "
"daemon (%d, %d) kernel (%d, %d)\n", "daemon (%d, %d) kernel (%d, %d)\n",
sbi->min_proto, sbi->max_proto, sbi->min_proto, sbi->max_proto,
AUTOFS_MIN_PROTO_VERSION, AUTOFS_MAX_PROTO_VERSION); AUTOFS_MIN_PROTO_VERSION, AUTOFS_MAX_PROTO_VERSION);
goto fail_dput; goto fail_dput;
} }
...@@ -308,11 +308,11 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) ...@@ -308,11 +308,11 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
sbi->version = sbi->max_proto; sbi->version = sbi->max_proto;
sbi->sub_version = AUTOFS_PROTO_SUBVERSION; sbi->sub_version = AUTOFS_PROTO_SUBVERSION;
DPRINTK("pipe fd = %d, pgrp = %u\n", pipefd, pid_nr(sbi->oz_pgrp)); pr_debug("pipe fd = %d, pgrp = %u\n", pipefd, pid_nr(sbi->oz_pgrp));
pipe = fget(pipefd); pipe = fget(pipefd);
if (!pipe) { if (!pipe) {
AUTOFS_ERROR("could not open pipe file descriptor\n"); pr_err("could not open pipe file descriptor\n");
goto fail_dput; goto fail_dput;
} }
ret = autofs_prepare_pipe(pipe); ret = autofs_prepare_pipe(pipe);
...@@ -332,7 +332,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) ...@@ -332,7 +332,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
* Failure ... clean up. * Failure ... clean up.
*/ */
fail_fput: fail_fput:
AUTOFS_ERROR("pipe file descriptor does not contain proper ops\n"); pr_err("pipe file descriptor does not contain proper ops\n");
fput(pipe); fput(pipe);
/* fall through */ /* fall through */
fail_dput: fail_dput:
......
...@@ -108,7 +108,7 @@ static int autofs4_dir_open(struct inode *inode, struct file *file) ...@@ -108,7 +108,7 @@ static int autofs4_dir_open(struct inode *inode, struct file *file)
struct dentry *dentry = file->f_path.dentry; struct dentry *dentry = file->f_path.dentry;
struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
DPRINTK("file=%p dentry=%p %pd\n", file, dentry, dentry); pr_debug("file=%p dentry=%p %pd\n", file, dentry, dentry);
if (autofs4_oz_mode(sbi)) if (autofs4_oz_mode(sbi))
goto out; goto out;
...@@ -138,7 +138,7 @@ static void autofs4_dentry_release(struct dentry *de) ...@@ -138,7 +138,7 @@ static void autofs4_dentry_release(struct dentry *de)
struct autofs_info *ino = autofs4_dentry_ino(de); struct autofs_info *ino = autofs4_dentry_ino(de);
struct autofs_sb_info *sbi = autofs4_sbi(de->d_sb); struct autofs_sb_info *sbi = autofs4_sbi(de->d_sb);
DPRINTK("releasing %p\n", de); pr_debug("releasing %p\n", de);
if (!ino) if (!ino)
return; return;
...@@ -278,9 +278,9 @@ static int autofs4_mount_wait(struct dentry *dentry, bool rcu_walk) ...@@ -278,9 +278,9 @@ static int autofs4_mount_wait(struct dentry *dentry, bool rcu_walk)
if (ino->flags & AUTOFS_INF_PENDING) { if (ino->flags & AUTOFS_INF_PENDING) {
if (rcu_walk) if (rcu_walk)
return -ECHILD; return -ECHILD;
DPRINTK("waiting for mount name=%pd\n", dentry); pr_debug("waiting for mount name=%pd\n", dentry);
status = autofs4_wait(sbi, dentry, NFY_MOUNT); status = autofs4_wait(sbi, dentry, NFY_MOUNT);
DPRINTK("mount wait done status=%d\n", status); pr_debug("mount wait done status=%d\n", status);
} }
ino->last_used = jiffies; ino->last_used = jiffies;
return status; return status;
...@@ -340,7 +340,7 @@ static struct vfsmount *autofs4_d_automount(struct path *path) ...@@ -340,7 +340,7 @@ static struct vfsmount *autofs4_d_automount(struct path *path)
struct autofs_info *ino = autofs4_dentry_ino(dentry); struct autofs_info *ino = autofs4_dentry_ino(dentry);
int status; int status;
DPRINTK("dentry=%p %pd\n", dentry, dentry); pr_debug("dentry=%p %pd\n", dentry, dentry);
/* The daemon never triggers a mount. */ /* The daemon never triggers a mount. */
if (autofs4_oz_mode(sbi)) if (autofs4_oz_mode(sbi))
...@@ -427,7 +427,7 @@ static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk) ...@@ -427,7 +427,7 @@ static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
struct autofs_info *ino = autofs4_dentry_ino(dentry); struct autofs_info *ino = autofs4_dentry_ino(dentry);
int status; int status;
DPRINTK("dentry=%p %pd\n", dentry, dentry); pr_debug("dentry=%p %pd\n", dentry, dentry);
/* The daemon never waits. */ /* The daemon never waits. */
if (autofs4_oz_mode(sbi)) { if (autofs4_oz_mode(sbi)) {
...@@ -504,7 +504,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, ...@@ -504,7 +504,7 @@ static struct dentry *autofs4_lookup(struct inode *dir,
struct autofs_info *ino; struct autofs_info *ino;
struct dentry *active; struct dentry *active;
DPRINTK("name = %pd\n", dentry); pr_debug("name = %pd\n", dentry);
/* File name too long to exist */ /* File name too long to exist */
if (dentry->d_name.len > NAME_MAX) if (dentry->d_name.len > NAME_MAX)
...@@ -512,9 +512,9 @@ static struct dentry *autofs4_lookup(struct inode *dir, ...@@ -512,9 +512,9 @@ static struct dentry *autofs4_lookup(struct inode *dir,
sbi = autofs4_sbi(dir->i_sb); sbi = autofs4_sbi(dir->i_sb);
DPRINTK("pid = %u, pgrp = %u, catatonic = %d, oz_mode = %d\n", pr_debug("pid = %u, pgrp = %u, catatonic = %d, oz_mode = %d\n",
current->pid, task_pgrp_nr(current), sbi->catatonic, current->pid, task_pgrp_nr(current), sbi->catatonic,
autofs4_oz_mode(sbi)); autofs4_oz_mode(sbi));
active = autofs4_lookup_active(dentry); active = autofs4_lookup_active(dentry);
if (active) if (active)
...@@ -559,7 +559,7 @@ static int autofs4_dir_symlink(struct inode *dir, ...@@ -559,7 +559,7 @@ static int autofs4_dir_symlink(struct inode *dir,
size_t size = strlen(symname); size_t size = strlen(symname);
char *cp; char *cp;
DPRINTK("%s <- %pd\n", symname, dentry); pr_debug("%s <- %pd\n", symname, dentry);
if (!autofs4_oz_mode(sbi)) if (!autofs4_oz_mode(sbi))
return -EACCES; return -EACCES;
...@@ -699,7 +699,7 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry) ...@@ -699,7 +699,7 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry)
struct autofs_info *ino = autofs4_dentry_ino(dentry); struct autofs_info *ino = autofs4_dentry_ino(dentry);
struct autofs_info *p_ino; struct autofs_info *p_ino;
DPRINTK("dentry %p, removing %pd\n", dentry, dentry); pr_debug("dentry %p, removing %pd\n", dentry, dentry);
if (!autofs4_oz_mode(sbi)) if (!autofs4_oz_mode(sbi))
return -EACCES; return -EACCES;
...@@ -742,7 +742,7 @@ static int autofs4_dir_mkdir(struct inode *dir, ...@@ -742,7 +742,7 @@ static int autofs4_dir_mkdir(struct inode *dir,
if (!autofs4_oz_mode(sbi)) if (!autofs4_oz_mode(sbi))
return -EACCES; return -EACCES;
DPRINTK("dentry %p, creating %pd\n", dentry, dentry); pr_debug("dentry %p, creating %pd\n", dentry, dentry);
BUG_ON(!ino); BUG_ON(!ino);
...@@ -844,7 +844,7 @@ static inline int autofs4_ask_umount(struct vfsmount *mnt, int __user *p) ...@@ -844,7 +844,7 @@ static inline int autofs4_ask_umount(struct vfsmount *mnt, int __user *p)
if (may_umount(mnt)) if (may_umount(mnt))
status = 1; status = 1;
DPRINTK("returning %d\n", status); pr_debug("returning %d\n", status);
status = put_user(status, p); status = put_user(status, p);
...@@ -872,8 +872,8 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp, ...@@ -872,8 +872,8 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp,
struct autofs_sb_info *sbi = autofs4_sbi(inode->i_sb); struct autofs_sb_info *sbi = autofs4_sbi(inode->i_sb);
void __user *p = (void __user *)arg; void __user *p = (void __user *)arg;
DPRINTK("cmd = 0x%08x, arg = 0x%08lx, sbi = %p, pgrp = %u\n", pr_debug("cmd = 0x%08x, arg = 0x%08lx, sbi = %p, pgrp = %u\n",
cmd, arg, sbi, task_pgrp_nr(current)); cmd, arg, sbi, task_pgrp_nr(current));
if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) ||
_IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT)
......
...@@ -31,7 +31,7 @@ void autofs4_catatonic_mode(struct autofs_sb_info *sbi) ...@@ -31,7 +31,7 @@ void autofs4_catatonic_mode(struct autofs_sb_info *sbi)
return; return;
} }
DPRINTK("entering catatonic mode\n"); pr_debug("entering catatonic mode\n");
sbi->catatonic = 1; sbi->catatonic = 1;
wq = sbi->queues; wq = sbi->queues;
...@@ -101,9 +101,9 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi, ...@@ -101,9 +101,9 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
struct file *pipe = NULL; struct file *pipe = NULL;
size_t pktsz; size_t pktsz;
DPRINTK("wait id = 0x%08lx, name = %.*s, type=%d\n", pr_debug("wait id = 0x%08lx, name = %.*s, type=%d\n",
(unsigned long) wq->wait_queue_token, (unsigned long) wq->wait_queue_token,
wq->name.len, wq->name.name, type); wq->name.len, wq->name.name, type);
memset(&pkt, 0, sizeof(pkt)); /* For security reasons */ memset(&pkt, 0, sizeof(pkt)); /* For security reasons */
...@@ -164,7 +164,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi, ...@@ -164,7 +164,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
break; break;
} }
default: default:
AUTOFS_WARN("bad type %d!\n", type); pr_warn("bad type %d!\n", type);
mutex_unlock(&sbi->wq_mutex); mutex_unlock(&sbi->wq_mutex);
return; return;
} }
...@@ -453,9 +453,9 @@ int autofs4_wait(struct autofs_sb_info *sbi, ...@@ -453,9 +453,9 @@ int autofs4_wait(struct autofs_sb_info *sbi,
autofs_ptype_expire_indirect; autofs_ptype_expire_indirect;
} }
DPRINTK("new wait id = 0x%08lx, name = %.*s, nfy=%d\n", pr_debug("new wait id = 0x%08lx, name = %.*s, nfy=%d\n",
(unsigned long) wq->wait_queue_token, wq->name.len, (unsigned long) wq->wait_queue_token, wq->name.len,
wq->name.name, notify); wq->name.name, notify);
/* /*
* autofs4_notify_daemon() may block; it will unlock ->wq_mutex * autofs4_notify_daemon() may block; it will unlock ->wq_mutex
...@@ -463,9 +463,9 @@ int autofs4_wait(struct autofs_sb_info *sbi, ...@@ -463,9 +463,9 @@ int autofs4_wait(struct autofs_sb_info *sbi,
autofs4_notify_daemon(sbi, wq, type); autofs4_notify_daemon(sbi, wq, type);
} else { } else {
wq->wait_ctr++; wq->wait_ctr++;
DPRINTK("existing wait id = 0x%08lx, name = %.*s, nfy=%d\n", pr_debug("existing wait id = 0x%08lx, name = %.*s, nfy=%d\n",
(unsigned long) wq->wait_queue_token, wq->name.len, (unsigned long) wq->wait_queue_token, wq->name.len,
wq->name.name, notify); wq->name.name, notify);
mutex_unlock(&sbi->wq_mutex); mutex_unlock(&sbi->wq_mutex);
kfree(qstr.name); kfree(qstr.name);
} }
...@@ -494,7 +494,7 @@ int autofs4_wait(struct autofs_sb_info *sbi, ...@@ -494,7 +494,7 @@ int autofs4_wait(struct autofs_sb_info *sbi,
recalc_sigpending(); recalc_sigpending();
spin_unlock_irqrestore(&current->sighand->siglock, irqflags); spin_unlock_irqrestore(&current->sighand->siglock, irqflags);
} else { } else {
DPRINTK("skipped sleeping\n"); pr_debug("skipped sleeping\n");
} }
status = wq->status; status = wq->status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment