custom message type for VM_INFO
[minix3.git] / lib / libsys / env_panic.c
blob4ca0dcd42bca01d5db613061f5e909f921e121f1
1 #include "sysutil.h"
2 #include <string.h>
4 /*=========================================================================*
5 * env_panic *
6 *=========================================================================*/
7 void env_panic(const char *key)
9 static char value[EP_BUF_SIZE] = "<unknown>";
10 int s;
11 if ((s=env_get_param(key, value, sizeof(value))) == 0) {
12 if (s != ESRCH) /* only error allowed */
13 printf("WARNING: env_get_param() failed in env_panic(): %d\n", s);
15 panic("Bad environment setting: '%s = %s'\n", key, value);