diff options
author | Michael Brown | 2015-02-11 14:32:57 +0100 |
---|---|---|
committer | Michael Brown | 2015-02-11 15:11:28 +0100 |
commit | eac445b650d60b54bae2e6738ef45117adacd90a (patch) | |
tree | 28b84b8b6556f48e6f4ea9d83751dae316754ab1 /src/hci | |
parent | [build] Allow product URI to be customised via config/branding.h (diff) | |
download | ipxe-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.c | 5 |
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 ); } |