summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2009-09-29 13:34:56 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-09-29 13:34:56 +0000
commit2f2e435cc6bd77e9456577f4cd712b46bec82b61 (patch)
tree3026620ff431a8d62f2ffe066577d75095bdf107
parentcd75b1d4fbb636cd0a7ccb88a15c25ac304a5ef6 (diff)
downloadcoreboot-2f2e435cc6bd77e9456577f4cd712b46bec82b61.tar.xz
Make the error messages somewhat less incomprehensible. I forget
what they mean every time I see them. Add a proto. More work remains to be done. Build tested on dell s1850. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4684 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/options/build_opt_tbl.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/util/options/build_opt_tbl.c b/util/options/build_opt_tbl.c
index ec9400629e..91ce5904ca 100644
--- a/util/options/build_opt_tbl.c
+++ b/util/options/build_opt_tbl.c
@@ -16,6 +16,7 @@
#define TMPFILE_TEMPLATE "/build_opt_tbl_XXXXXX"
static unsigned char cmos_table[4096];
+void test_for_entry_overlaps(void *entry_start, void *entry_end);
/* This array is used to isolate bits that are to be changed in a byte */
static unsigned char clip[9]={0,1,3,7,0x0f,0x1f,0x3f,0x7f,0xff};
@@ -460,17 +461,21 @@ int main(int argc, char **argv)
}
/* And since we are not ready to be fully general purpose yet.. */
if ((cs->range_start/8) != CONFIG_LB_CKS_RANGE_START) {
- fprintf(stderr, "Error - Range start(%d) does not match define(%d) in line\n%s\n",
- cs->range_start/8, CONFIG_LB_CKS_RANGE_START, line);
+ fprintf(stderr, "Error - Range start((value in file #%d), which is byte #%d)"
+ "does not match the value of the config variable LB_CKS_RANGE_START)(%d) in line\n%s\n",
+ cs->range_start, cs->range_start/8, CONFIG_LB_CKS_RANGE_START, line);
exit(1);
}
if ((cs->range_end/8) != CONFIG_LB_CKS_RANGE_END) {
- fprintf(stderr, "Error - Range end (%d) does not match define (%d) in line\n%s\n",
- (cs->range_end/8), CONFIG_LB_CKS_RANGE_END, line);
+ fprintf(stderr, "Error - Range end ((value in file #%d), which is byte #%d)"
+ "does not match the value of the config variable LB_CKS_RANGE_END (%d) in line\n%s\n",
+ cs->range_end, cs->range_end/8,
+ CONFIG_LB_CKS_RANGE_END, line);
exit(1);
}
if ((cs->location/8) != CONFIG_LB_CKS_LOC) {
- fprintf(stderr, "Error - Location does not match define in line\n%s\n", line);
+ fprintf(stderr, "Error - Location ((value in file #%d), which is byte #%d) does not match LB_CKS_LOC (%d) in line\n%s\n",
+ cs->location, cs->location/8, CONFIG_LB_CKS_LOC, line);
exit(1);
}