summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2020-06-04 23:39:24 +0300
committerHristo Venev <hristo@venev.name>2020-06-04 23:39:38 +0300
commitf60a0bd9a50d4b9bcee610a9f2165a9778a8ee7a (patch)
tree81f125a880ef17a8ffc140bc3e1bc18760a194ed
parentce2b15f40709f03540911e58ea8d2f4e4f3dd269 (diff)
Make error messages more uniform.
-rw-r--r--vc-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vc-log.c b/vc-log.c
index dce8822..8231cdb 100644
--- a/vc-log.c
+++ b/vc-log.c
@@ -160,7 +160,7 @@ static void vc_open(void) {
uint32_t dbg_off = vc_mem_load + VC_DEBUG_HEADER_OFFSET;
uint32_t dbg_magic = vc_read_u32(dbg_off + 4);
if(dbg_magic != 0x48444356) {
- fprintf(stderr, "bad debug magic: %x, expected 48444356\n", dbg_magic);
+ fprintf(stderr, "bad debug magic: %08x, wanted 48444356\n", dbg_magic);
abort();
}
vc_syms_off = vc_read_u32(dbg_off);
@@ -195,7 +195,7 @@ static void vc_log_read(size_t descriptor_ptr) {
uint32_t magic = vc_read_u32(ptr);
if(magic != 0x5353454d) {
- printf("bad magic %x, wanted 5353454d", magic);
+ printf("bad fifo log magic: %08x, wanted 5353454d", magic);
return;
}
@@ -236,7 +236,7 @@ static void vc_log_read_all(void) {
uint32_t log_magic = vc_read_u32(log_start);
if(log_magic != 0x564c4f47) {
- fprintf(stderr, "bad log magic: %x, wanted 564c4f47\n", log_magic);
+ fprintf(stderr, "bad log header magic: %08x, wanted 564c4f47\n", log_magic);
abort();
}