[build] Allow error message URI to be customised via config/branding.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-02-11 13:32:57 +00:00
parent e1ce15ec3c
commit eac445b650
2 changed files with 48 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#include <string.h>
#include <stdio.h>
#include <ipxe/errortab.h>
#include <config/branding.h>
/** @file
*
@@ -88,11 +89,11 @@ const char * strerror ( int errno ) {
/* Construct the error message */
if ( errortab ) {
snprintf ( errbuf, sizeof ( errbuf ),
"%s (http://ipxe.org/%08x)",
"%s (" PRODUCT_ERROR_URI ")",
errortab->text, errno );
} else {
snprintf ( errbuf, sizeof ( errbuf ),
"Error %#08x (http://ipxe.org/%08x)",
"Error %#08x (" PRODUCT_ERROR_URI ")",
errno, errno );
}