]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] Add some debug spew if terminal couldn't be opened
authorRay Strode <rstrode@redhat.com>
Wed, 2 Jun 2010 22:30:12 +0000 (18:30 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 2 Jun 2010 22:30:12 +0000 (18:30 -0400)
src/libply-splash-core/ply-terminal.c

index ff59d7195cb1261ac5eb09773f7e0398550f97d9..6140fa450afa8f23fd664a2a92fc85913d744169 100644 (file)
@@ -462,7 +462,10 @@ ply_terminal_open_device (ply_terminal_t *terminal)
   terminal->fd = open (terminal->name, O_RDWR | O_NOCTTY);
 
   if (terminal->fd < 0)
-    return false;
+    {
+      ply_trace ("Unable to open terminal device '%s': %m");
+      return false;
+    }
 
   terminal->fd_watch = ply_event_loop_watch_fd (terminal->loop, terminal->fd,
                                                    PLY_EVENT_LOOP_FD_STATUS_NONE,