summaryrefslogtreecommitdiff
path: root/components/drivers/tty/tty.c
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2023-02-25 13:52:37 -0500
committerGitHub <[email protected]>2023-02-25 13:52:37 -0500
commit1acef4277b02e5084310ecd7028656ae535178f5 (patch)
tree03b6b6f0b3df75a1cef301e1e7b2b3d234213390 /components/drivers/tty/tty.c
parent759192f5f5af23ae360818483d35974ef5b91c78 (diff)
parente63e33a3c64327aef3556fa811df0a8ec1e0e7ee (diff)
Merge pull request #6981 from RT-Thread/masterserialX-dev
sync from master
Diffstat (limited to 'components/drivers/tty/tty.c')
-rw-r--r--components/drivers/tty/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/tty/tty.c b/components/drivers/tty/tty.c
index 2a9380f55a..933d5f028b 100644
--- a/components/drivers/tty/tty.c
+++ b/components/drivers/tty/tty.c
@@ -200,7 +200,7 @@ int __tty_check_change(struct tty_struct *tty, int sig)
if (!tty_pgrp)
{
- LOG_D(tty, "sig=%d, tty->pgrp == -1!\n", sig);
+ LOG_D("sig=%d, tty->pgrp == -1!\n", sig);
}
return ret;
}
@@ -275,7 +275,7 @@ static int tiocsctty(struct tty_struct *tty, int arg)
if (current->leader &&
(current->session == tty->session))
{
- return 0;
+ return 0;
}
/*
@@ -284,7 +284,7 @@ static int tiocsctty(struct tty_struct *tty, int arg)
*/
if (!current->leader || current->tty)
{
- return -EPERM;
+ return -EPERM;
}
if (tty->session > 0)