print error on invalid hget(), minor bugfix for QEMU_PR_PRINTF enable
This commit is contained in:
parent
169b084df5
commit
81dbc38d46
@ -381,7 +381,11 @@ page_cache_t* page_cache_new(const char* cache_file, uint8_t disassembler_word_w
|
|||||||
self->last_page = 0xFFFFFFFFFFFFFFFF;
|
self->last_page = 0xFFFFFFFFFFFFFFFF;
|
||||||
self->last_addr = 0xFFFFFFFFFFFFFFFF;
|
self->last_addr = 0xFFFFFFFFFFFFFFFF;
|
||||||
|
|
||||||
|
#ifndef STANDALONE_DECODER
|
||||||
QEMU_PT_PRINTF(PAGE_CACHE_PREFIX, "%s (%s - %s)", __func__, tmp1, tmp2);
|
QEMU_PT_PRINTF(PAGE_CACHE_PREFIX, "%s (%s - %s)", __func__, tmp1, tmp2);
|
||||||
|
#else
|
||||||
|
QEMU_PT_PRINTF(PAGE_CACHE_PREFIX, "%s (%s - %s) WORD_WIDTH: %d", __func__, tmp1, tmp2, disassembler_word_width);
|
||||||
|
#endif
|
||||||
|
|
||||||
free(tmp3);
|
free(tmp3);
|
||||||
free(tmp2);
|
free(tmp2);
|
||||||
|
@ -167,6 +167,7 @@ uint64_t sharedir_request_file(sharedir_t* self, const char* file, uint8_t* page
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
fprintf(stderr, "WARNING: No such file in sharedir: %s\n", file);
|
||||||
return 0xFFFFFFFFFFFFFFFFUL;
|
return 0xFFFFFFFFFFFFFFFFUL;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user