aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-03-18 15:14:42 (GMT)
committerDan Carpenter <dan.carpenter@oracle.com>2019-03-18 15:14:42 (GMT)
commit48f2ba95ec21782006c060bccacfe7f5c80d97ed (patch)
tree620552b0dca617a087c63e45cc5cdb0d16b174d5
parent77a3041bdf15dbdb6eb64a6fa782821ebe99f961 (diff)
debug: use expr_to_mtag_offset()
This is slightly more useful. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
-rw-r--r--check_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/check_debug.c b/check_debug.c
index 2ad76ae..856417b 100644
--- a/check_debug.c
+++ b/check_debug.c
@@ -635,11 +635,12 @@ static void match_mtag(const char *fn, struct expression *expr, void *info)
struct expression *arg;
char *name;
mtag_t tag = 0;
+ int offset = 0;
arg = get_argument_from_call_expr(expr->args, 0);
name = expr_to_str(arg);
- get_mtag(arg, &tag);
- sm_msg("mtag: '%s' => tag: %lld", name, tag);
+ expr_to_mtag_offset(arg, &tag, &offset);
+ sm_msg("mtag: '%s' => tag: %llu %d", name, tag, offset);
free_string(name);
}

Privacy Policy