]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/pty-session: improve debug messages
authorKarel Zak <kzak@redhat.com>
Fri, 9 Aug 2019 08:22:27 +0000 (10:22 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:54 +0000 (13:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/pty-session.c

index 1c6b559691bc57923c8e06ba141011ed981f1fd1..81af3b11b37d4e6e78a7583ca53ca10194932bab 100644 (file)
@@ -271,7 +271,7 @@ static int handle_io(struct ul_pty *pty, int fd, int *eof)
        char buf[BUFSIZ];
        ssize_t bytes;
 
-       DBG(IO, ul_debugobj(pty, "%d FD active", fd));
+       DBG(IO, ul_debugobj(pty, " handle I/O on fd=%d", fd));
        *eof = 0;
 
        /* read from active FD */
@@ -312,7 +312,7 @@ static int handle_signal(struct ul_pty *pty, int fd)
        struct signalfd_siginfo info;
        ssize_t bytes;
 
-       DBG(SIG, ul_debugobj(pty, "signal FD %d active", fd));
+       DBG(SIG, ul_debugobj(pty, " handle signal on fd=%d", fd));
 
        bytes = read(fd, &info, sizeof(info));
        if (bytes != sizeof(info)) {