diff options
Diffstat (limited to 'arch/um/os-Linux/mem.c')
-rw-r--r-- | arch/um/os-Linux/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index c6378c6d10d2..436f8d20b20f 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -218,7 +218,7 @@ int __init create_tmp_file(unsigned long long len) | |||
218 | 218 | ||
219 | err = fchmod(fd, 0777); | 219 | err = fchmod(fd, 0777); |
220 | if(err < 0){ | 220 | if(err < 0){ |
221 | perror("os_mode_fd"); | 221 | perror("fchmod"); |
222 | exit(1); | 222 | exit(1); |
223 | } | 223 | } |
224 | 224 | ||
@@ -226,7 +226,7 @@ int __init create_tmp_file(unsigned long long len) | |||
226 | * increase the file size by one byte, to the desired length. | 226 | * increase the file size by one byte, to the desired length. |
227 | */ | 227 | */ |
228 | if (lseek64(fd, len - 1, SEEK_SET) < 0) { | 228 | if (lseek64(fd, len - 1, SEEK_SET) < 0) { |
229 | perror("os_seek_file"); | 229 | perror("lseek64"); |
230 | exit(1); | 230 | exit(1); |
231 | } | 231 | } |
232 | 232 | ||
@@ -247,7 +247,7 @@ int __init create_mem_file(unsigned long long len) | |||
247 | 247 | ||
248 | fd = create_tmp_file(len); | 248 | fd = create_tmp_file(len); |
249 | 249 | ||
250 | err = os_set_exec_close(fd, 1); | 250 | err = os_set_exec_close(fd); |
251 | if(err < 0){ | 251 | if(err < 0){ |
252 | errno = -err; | 252 | errno = -err; |
253 | perror("exec_close"); | 253 | perror("exec_close"); |