X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=initd%2Fzram.c;h=b41bfd999ba2630f086cba140e5fdcd7aabfac6b;hp=d438372469451fa3a8c7794435e1a6e8beacf19f;hb=a5954cf302fe46d8e29770c818336763112b9a6e;hpb=810d7a51c584673f3511f1fa2eb447c67fd7f88e diff --git a/initd/zram.c b/initd/zram.c index d438372..b41bfd9 100644 --- a/initd/zram.c +++ b/initd/zram.c @@ -64,12 +64,12 @@ early_insmod(char *module) sprintf(path, module, ver.release); modprobe[1] = path; execvp(modprobe[0], modprobe); - ERROR("Can't exec %s\n", modprobe[0]); + ERROR("Can't exec %s: %m\n", modprobe[0]); exit(-1); } if (pid <= 0) { - ERROR("Can't exec %s\n", modprobe[0]); + ERROR("Can't exec %s: %m\n", modprobe[0]); return -1; } else { waitpid(pid, NULL, 0); @@ -107,10 +107,10 @@ mount_zram_on_tmp(void) pid = fork(); if (!pid) { execvp(mkfs[0], mkfs); - ERROR("Can't exec %s\n", mkfs[0]); + ERROR("Can't exec %s: %m\n", mkfs[0]); exit(-1); } else if (pid <= 0) { - ERROR("Can't exec %s\n", mkfs[0]); + ERROR("Can't exec %s: %m\n", mkfs[0]); return -1; } else { waitpid(pid, NULL, 0);