summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:50:51 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:50:51 +0000
commitbacdce0a4c5420430d1ac818a41f423a3f269613 (patch)
tree1c47bbdac9a4048c55f083aa6f997d27cf02f5bf
parenta362aa0eaba743533a647efe1be718faa3fcac88 (diff)
downloaddrakx-bacdce0a4c5420430d1ac818a41f423a3f269613.tar
drakx-bacdce0a4c5420430d1ac818a41f423a3f269613.tar.gz
drakx-bacdce0a4c5420430d1ac818a41f423a3f269613.tar.bz2
drakx-bacdce0a4c5420430d1ac818a41f423a3f269613.tar.xz
drakx-bacdce0a4c5420430d1ac818a41f423a3f269613.zip
better log messages
-rw-r--r--mdk-stage1/lomount.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mdk-stage1/lomount.c b/mdk-stage1/lomount.c
index 232ef57ce..ebb107e56 100644
--- a/mdk-stage1/lomount.c
+++ b/mdk-stage1/lomount.c
@@ -85,8 +85,7 @@ set_loop (const char *device, const char *file)
*/
if(mlockall(MCL_CURRENT|MCL_FUTURE)) {
- log_message("%s (memlock)\n", strerror(errno));
- log_message("CRITICAL Couldn't lock into memory!\n");
+ log_message("CRITICAL Couldn't lock into memory! %s (memlock)", strerror(errno));
return 1;
}
#endif
@@ -134,17 +133,17 @@ lomount(char *loopfile, char *where)
my_insmod("loop", ANY_DRIVER_TYPE, NULL);
if (set_loop(loopdev, loopfile)) {
- log_message("set_loop failed on %s (%s)\n", loopdev, strerror(errno));
+ log_message("set_loop failed on %s (%s)", loopdev, strerror(errno));
return 1;
}
if (my_mount(loopdev, where, "iso9660")) {
- log_message("mount failed: %s\n", strerror(errno));
+ log_message("mount failed: %s", strerror(errno));
del_loop(loopdev);
return 1;
}
- log_message("lomount succeded for %s on %s\n", loopfile, where);
+ log_message("lomount succeded for %s on %s", loopfile, where);
return 0;
}