mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user