libpayload: Provide dummy getenv()
[coreboot.git] / payloads / libpayload / libc / lib.c
index baccc07701b78c0b54e7927d8e691f481dd70ade..616a7c6ca7628e6a5218833513b9648b53117b61 100644 (file)
@@ -109,7 +109,7 @@ u8 hex2bin(u8 h)
  */
 void fatal(const char *msg)
 {
-       printf("%s",msg);
+       fprintf(stderr, "%s",msg);
        halt();
 }
 
@@ -120,3 +120,9 @@ void exit(int status)
 }
 
 int errno;
+
+char *getenv(const char *name)
+{
+       return NULL;
+}
+