diff options
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/ioctl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/atm/ioctl.c b/net/atm/ioctl.c index 62dc8bfe6fe7..bbd3b639992e 100644 --- a/net/atm/ioctl.c +++ b/net/atm/ioctl.c | |||
@@ -97,9 +97,8 @@ static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, | |||
97 | error = sock_get_timestampns(sk, argp); | 97 | error = sock_get_timestampns(sk, argp); |
98 | goto done; | 98 | goto done; |
99 | case ATM_SETSC: | 99 | case ATM_SETSC: |
100 | if (net_ratelimit()) | 100 | net_warn_ratelimited("ATM_SETSC is obsolete; used by %s:%d\n", |
101 | pr_warning("ATM_SETSC is obsolete; used by %s:%d\n", | 101 | current->comm, task_pid_nr(current)); |
102 | current->comm, task_pid_nr(current)); | ||
103 | error = 0; | 102 | error = 0; |
104 | goto done; | 103 | goto done; |
105 | case ATMSIGD_CTRL: | 104 | case ATMSIGD_CTRL: |
@@ -123,8 +122,7 @@ static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, | |||
123 | work for 32-bit userspace. TBH I don't really want | 122 | work for 32-bit userspace. TBH I don't really want |
124 | to think about it at all. dwmw2. */ | 123 | to think about it at all. dwmw2. */ |
125 | if (compat) { | 124 | if (compat) { |
126 | if (net_ratelimit()) | 125 | net_warn_ratelimited("32-bit task cannot be atmsigd\n"); |
127 | pr_warning("32-bit task cannot be atmsigd\n"); | ||
128 | error = -EINVAL; | 126 | error = -EINVAL; |
129 | goto done; | 127 | goto done; |
130 | } | 128 | } |