summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
authorMichael Brown2015-02-11 14:32:57 +0100
committerMichael Brown2015-02-11 15:11:28 +0100
commiteac445b650d60b54bae2e6738ef45117adacd90a (patch)
tree28b84b8b6556f48e6f4ea9d83751dae316754ab1 /src/hci
parent[build] Allow product URI to be customised via config/branding.h (diff)
downloadipxe-eac445b650d60b54bae2e6738ef45117adacd90a.tar.gz
ipxe-eac445b650d60b54bae2e6738ef45117adacd90a.tar.xz
ipxe-eac445b650d60b54bae2e6738ef45117adacd90a.zip
[build] Allow error message URI to be customised via config/branding.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/strerror.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hci/strerror.c b/src/hci/strerror.c
index 9356e9e0..4e97d957 100644
--- a/src/hci/strerror.c
+++ b/src/hci/strerror.c
@@ -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 );
}