Add missing newline in reports
authorTim Pepper <timothy.c.pepper@linux.intel.com>
Thu, 15 Nov 2012 00:22:50 +0000 (16:22 -0800)
committerTim Pepper <timothy.c.pepper@linux.intel.com>
Thu, 15 Nov 2012 00:22:50 +0000 (16:22 -0800)
In error cases we might not get a backtrace or maps out of gdb.  In that
case the default "Unknown" string is missing a newline.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
src/coredump.c

index 4c84610..3610845 100644 (file)
@@ -326,8 +326,8 @@ static struct oops *extract_core(char *fullpath, char *appfile, char *reportname
                       "maps: |\n"
                       "%s",
                       h1,
-                      c1 ? c1 : "        Unknown",
-                      m1 ? m1 : "        Unknown");
+                      c1 ? c1 : "        Unknown\n",
+                      m1 ? m1 : "        Unknown\n");
        free(h1);
        if (c1)
                free(c1);