File: fix_error_message.patch

package info (click to toggle)
kexec-tools 1%3A2.0.31-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 3,088 kB
  • sloc: ansic: 30,128; sh: 3,553; asm: 2,625; cpp: 1,753; makefile: 968
file content (11 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -588,7 +588,7 @@
 		}
 	}
 	if ((use_mmap && (buf == MAP_FAILED)) || (!use_mmap && (buf == NULL)))
-		die("Cannot read %s", filename);
+		die("Cannot read %s\n", filename);
 
 	if (nread != size)
 		die("Read on %s ended before stat said it should\n", filename);