arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1443872-2.patch

147e83
Add missing newlines to __libc_fatal error messages.  This was
147e83
implemented upstream in commits a6e8926f8d49a213a9abb1a61f6af964f612ab7f
147e83
("[BZ #20271] Add newlines in __libc_fatal calls.") and
147e83
36f30c104fe3addd4d864e276202c6b934f825b7
147e83
("__netlink_assert_response: Add more __libc_fatal newlines [BZ #20271]").
147e83
147e83
diff --git a/sysdeps/unix/sysv/linux/netlink_assert_response.c b/sysdeps/unix/sysv/linux/netlink_assert_response.c
147e83
index b570e93db840fec1..434b50d20b67d130 100644
147e83
--- a/sysdeps/unix/sysv/linux/netlink_assert_response.c
147e83
+++ b/sysdeps/unix/sysv/linux/netlink_assert_response.c
147e83
@@ -73,12 +73,12 @@ __netlink_assert_response (int fd, ssize_t result)
147e83
           char message[200];
147e83
           if (family < 0)
147e83
             __snprintf (message, sizeof (message),
147e83
-                        "Unexpected error %d on netlink descriptor %d",
147e83
+                        "Unexpected error %d on netlink descriptor %d\n",
147e83
                         error_code, fd);
147e83
           else
147e83
             __snprintf (message, sizeof (message),
147e83
                         "Unexpected error %d on netlink descriptor %d"
147e83
-                        " (address family %d)",
147e83
+                        " (address family %d)\n",
147e83
                         error_code, fd, family);
147e83
           __libc_fatal (message);
147e83
         }
147e83
@@ -93,12 +93,12 @@ __netlink_assert_response (int fd, ssize_t result)
147e83
       if (family < 0)
147e83
           __snprintf (message, sizeof (message),
147e83
                       "Unexpected netlink response of size %zd"
147e83
-                      " on descriptor %d",
147e83
+                      " on descriptor %d\n",
147e83
                       result, fd);
147e83
       else
147e83
           __snprintf (message, sizeof (message),
147e83
                       "Unexpected netlink response of size %zd"
147e83
-                      " on descriptor %d (address family %d)",
147e83
+                      " on descriptor %d (address family %d)\n",
147e83
                       result, fd, family);
147e83
       __libc_fatal (message);
147e83
     }