Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
33d176e7
Commit
33d176e7
authored
Jan 24, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] Use tty_name() when printing the tty name.
parent
59debc62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/serial/serial_core.c
drivers/serial/serial_core.c
+9
-5
No files found.
drivers/serial/serial_core.c
View file @
33d176e7
...
@@ -832,13 +832,17 @@ uart_set_info(struct uart_state *state, struct serial_struct *newinfo)
...
@@ -832,13 +832,17 @@ uart_set_info(struct uart_state *state, struct serial_struct *newinfo)
if
(
state
->
info
->
flags
&
UIF_INITIALIZED
)
{
if
(
state
->
info
->
flags
&
UIF_INITIALIZED
)
{
if
(((
old_flags
^
port
->
flags
)
&
UPF_SPD_MASK
)
||
if
(((
old_flags
^
port
->
flags
)
&
UPF_SPD_MASK
)
||
old_custom_divisor
!=
port
->
custom_divisor
)
{
old_custom_divisor
!=
port
->
custom_divisor
)
{
/* If they're setting up a custom divisor or speed,
/*
* If they're setting up a custom divisor or speed,
* instead of clearing it, then bitch about it. No
* instead of clearing it, then bitch about it. No
* need to rate-limit; it's CAP_SYS_ADMIN only. */
* need to rate-limit; it's CAP_SYS_ADMIN only.
*/
if
(
port
->
flags
&
UPF_SPD_MASK
)
{
if
(
port
->
flags
&
UPF_SPD_MASK
)
{
printk
(
KERN_NOTICE
"%s sets custom speed on %s%d. This is deprecated.
\n
"
,
char
buf
[
64
];
current
->
comm
,
state
->
info
->
tty
->
driver
->
name
,
printk
(
KERN_NOTICE
state
->
port
->
line
);
"%s sets custom speed on %s. This "
"is deprecated.
\n
"
,
current
->
comm
,
tty_name
(
state
->
info
->
tty
,
buf
));
}
}
uart_change_speed
(
state
,
NULL
);
uart_change_speed
(
state
,
NULL
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment