From: Antonio Huete Jimenez Date: Fri, 4 Feb 2011 17:16:09 +0000 (+0100) Subject: vkernel - Avoid appending the error message in some cases. X-Git-Tag: v2.11.0~267^2~111 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/376264e3030eab2d96f46fa67f1f285f82e5ed6b vkernel - Avoid appending the error message in some cases. --- diff --git a/sys/platform/vkernel/platform/init.c b/sys/platform/vkernel/platform/init.c index 3a79fa6495..3f46fc81f7 100644 --- a/sys/platform/vkernel/platform/init.c +++ b/sys/platform/vkernel/platform/init.c @@ -385,7 +385,7 @@ init_sys_memory(char *imageFile) Maxmem_bytes = (vm_paddr_t)st.st_size; if ((imageFile == NULL || stat(imageFile, &st) < 0) && Maxmem_bytes == 0) { - err(1, "Cannot create new memory file %s unless " + errx(1, "Cannot create new memory file %s unless " "system memory size is specified with -m", imageFile); /* NOT REACHED */ @@ -395,7 +395,7 @@ init_sys_memory(char *imageFile) * Maxmem must be known at this time */ if (Maxmem_bytes < 32 * 1024 * 1024 || (Maxmem_bytes & SEG_MASK)) { - err(1, "Bad maxmem specification: 32MB minimum, " + errx(1, "Bad maxmem specification: 32MB minimum, " "multiples of %dMB only", SEG_SIZE / 1024 / 1024); /* NOT REACHED */ diff --git a/sys/platform/vkernel64/platform/init.c b/sys/platform/vkernel64/platform/init.c index 2be53cb7c4..16b543a4bd 100644 --- a/sys/platform/vkernel64/platform/init.c +++ b/sys/platform/vkernel64/platform/init.c @@ -383,7 +383,7 @@ init_sys_memory(char *imageFile) Maxmem_bytes = (vm_paddr_t)st.st_size; if ((imageFile == NULL || stat(imageFile, &st) < 0) && Maxmem_bytes == 0) { - err(1, "Cannot create new memory file %s unless " + errx(1, "Cannot create new memory file %s unless " "system memory size is specified with -m", imageFile); /* NOT REACHED */ @@ -393,7 +393,7 @@ init_sys_memory(char *imageFile) * Maxmem must be known at this time */ if (Maxmem_bytes < 32 * 1024 * 1024 || (Maxmem_bytes & SEG_MASK)) { - err(1, "Bad maxmem specification: 32MB minimum, " + errx(1, "Bad maxmem specification: 32MB minimum, " "multiples of %dMB only", SEG_SIZE / 1024 / 1024); /* NOT REACHED */