From c20d196316c8cf7e8a174908c06b848bc9204a16 Mon Sep 17 00:00:00 2001 From: mio Date: Wed, 2 Oct 2024 15:56:34 +0800 Subject: [PATCH] Refine warning --- qemu/unicorn_common.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/qemu/unicorn_common.h b/qemu/unicorn_common.h index e70f50a8..9bf24c7a 100644 --- a/qemu/unicorn_common.h +++ b/qemu/unicorn_common.h @@ -154,13 +154,15 @@ static inline void uc_common_init(struct uc_struct* uc) ret = UC_ERR_OK; \ } while(0) -#define CHECK_RET_DEPRECATE(ret, regid) do { \ +#define CHECK_RET_DEPRECATE(ret, regid) do { \ if (ret == UC_ERR_ARG && !getenv("UC_IGNORE_REG_BREAK")) { \ fprintf(stderr, \ - "WARNING: Your register accessing on id %"PRIu32" is deprecated" \ - " and will get UC_ERR_ARG in the future release (2.2.0) because" \ - " the accessing is either no-op or not defined." \ - " Set UC_IGNORE_REG_BREAK=1 to ignore this warning.\n", \ + "WARNING: Your register accessing on id %"PRIu32" is deprecated " \ + "and will get UC_ERR_ARG in the future release (2.2.0) because " \ + "the accessing is either no-op or not defined. If you believe " \ + "the register should be implemented or there is a bug, please " \ + "submit an issue to https://github.com/unicorn-engine/unicorn. " \ + "Set UC_IGNORE_REG_BREAK=1 to ignore this warning.\n", \ regid); \ ret = UC_ERR_OK; \ } \